boinc/stripchart/samples/db_query

16 lines
223 B
Plaintext
Raw Normal View History

#! /bin/csh
set CIVDATE = `date "+%Y:%m:%d:%H:%M"`
set UNIXDATE = `perl -e 'print time()'`
set DBNAME = `./parse_config db_name`
set COUNT = `echo "use $DBNAME;$1" | mysql | tail -1`
echo $CIVDATE $UNIXDATE $COUNT