boinc/stripchart/samples/count_results

9 lines
270 B
Plaintext
Raw Normal View History

#! /bin/csh
# NOTE: this must be macro-substituted (for BOINC_DB_NAME)
set CIVDATE = `date "+%Y:%m:%d:%H:%M"`
set UNIXDATE = `perl -e 'print time()'`
set COUNT = `echo "use BOINC_DB_NAME; select count(*) from result" | mysql | tail -1`
echo $CIVDATE $UNIXDATE $COUNT