Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/popularity-contest/examples/ drwxr-xr-x |
Viewing file: popcon-process.sh (1.19 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | #!/bin/sh BASEDIR=/org/popcon.debian.org/popcon-mail MAILDIR=../Mail WEBDIR=../www LOGDIR=$BASEDIR/../logs BINDIR=$BASEDIR/../bin DATADIR=$BASEDIR/popcon-entries SUMMARYDIR=$BASEDIR/all-popcon-results # set to 'true' if email submissions should be processed READMAIL=true # Remove entries older than # number of days DAYLIMIT=20 set -e cd $BASEDIR umask 0002 # rotate incoming mail spool files if [ true = "$READMAIL" ] ; then mv $MAILDIR/survey new-popcon-entries touch $MAILDIR/survey chmod go-rwx $MAILDIR/survey # process entries, splitting them into individual reports $BINDIR/prepop.pl <new-popcon-entries >$LOGDIR/prepop.out 2>&1 fi # delete outdated entries rm -f results find $DATADIR -type f -mtime +$DAYLIMIT -print0 | xargs -0 rm -f -- # Generate statistics find $DATADIR -type f | xargs cat \ | nice -15 $BINDIR/popanal.py >$LOGDIR/popanal.out 2>&1 cp results $WEBDIR/all-popcon-results.txt gzip -f $WEBDIR/all-popcon-results.txt cp $WEBDIR/all-popcon-results.txt.gz $SUMMARYDIR/popcon-`date +"%Y-%m-%d"`.gz cd ../popcon-stat find $SUMMARYDIR -type f -print | sort | $BINDIR/popcon-stat.pl cd ../popcon-web $BINDIR/popcon.pl >$LOGDIR/popcon.log 2>$LOGDIR/popcon.errors |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.009 ]-- |