Author: coar
Date: Tue Mar  9 02:49:36 2010
New Revision: 920629

URL: http://svn.apache.org/viewvc?rev=920629&view=rev
Log:
Cron job(s) involved

Added:
    labs/pulse/cron.d/
    labs/pulse/cron.d/incoming.sh

Added: labs/pulse/cron.d/incoming.sh
URL: 
http://svn.apache.org/viewvc/labs/pulse/cron.d/incoming.sh?rev=920629&view=auto
==============================================================================
--- labs/pulse/cron.d/incoming.sh (added)
+++ labs/pulse/cron.d/incoming.sh Tue Mar  9 02:49:36 2010
@@ -0,0 +1,21 @@
+#! /bin/bash
+#
+# Script run as a cron job to load any outstanding data files and
+# generate the Web pages.
+#
+. /usr/local/labs/pulse/.pulserc
+
+cd $PULSE_DIR/data/queue
+NLOADED=0
+
+for INFILE in *.xml ; do
+    if $PULSE_DIR/analysis/listex-load.pl -n -f $INFILE ; then
+#        mv $FILE ../processed/
+        NLOADED=$(expr $NLOADED + 1)
+    fi
+done
+
+[ $NLOADED -gt 0 ] && {
+    cd $PULSE_DIR/web-reports
+    ./mlists.php -n -o $WEB_DIR
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to