stripchart scripts

svn path=/trunk/boinc/; revision=829
This commit is contained in:
David Anderson 2003-01-24 06:06:05 +00:00
parent 69620e1bb2
commit 6cadeb4a99
4 changed files with 13 additions and 9 deletions

View File

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

View File

@ -3,6 +3,6 @@
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`
set COUNT = `echo "use david_test; select count(*) from $1" | mysql | tail -1`
echo $CIVDATE $UNIXDATE $COUNT

4
stripchart/samples/db_looper Executable file
View File

@ -0,0 +1,4 @@
#! /bin/csh
set ARG = "db_count $1"
looper "$ARG" $2

8
stripchart/samples/dir_size Executable file
View File

@ -0,0 +1,8 @@
#! /bin/csh
set SIZE = `du -sk $1 | awk '{print $1*1024}'`
set CIVDATE = `/bin/date "+%Y:%m:%d:%H:%M"`
set UNIXDATE = `/usr/local/bin/perl -e 'print time()'`
echo $CIVDATE $UNIXDATE $SIZE