mirror of https://github.com/BOINC/boinc.git
parent
69620e1bb2
commit
6cadeb4a99
|
@ -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
|
|
|
@ -3,6 +3,6 @@
|
||||||
|
|
||||||
set CIVDATE = `date "+%Y:%m:%d:%H:%M"`
|
set CIVDATE = `date "+%Y:%m:%d:%H:%M"`
|
||||||
set UNIXDATE = `perl -e 'print time()'`
|
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
|
echo $CIVDATE $UNIXDATE $COUNT
|
|
@ -0,0 +1,4 @@
|
||||||
|
#! /bin/csh
|
||||||
|
|
||||||
|
set ARG = "db_count $1"
|
||||||
|
looper "$ARG" $2
|
|
@ -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
|
Loading…
Reference in New Issue