boinc/stripchart/samples/db_count

10 lines
240 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; select count(*) from $1" | mysql | tail -1`
echo $CIVDATE $UNIXDATE $COUNT