annotate runtick.sh @ 20:17b2bcc42d72 default tip

added check for empty result; minor stuff
author meillo@marmaro.de
date Sun, 27 Jul 2008 21:34:54 +0200
parents eb8db0d906de
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
1 #!/bin/sh
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
2 #
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
3 # runs one cycle
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
4 #
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
5
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
6 if [ $# -ne 1 ] ; then
9
ac67f688ed2e switched from gamename to database for identifing
meillo@marmaro.de
parents: 7
diff changeset
7 echo "usage: runtick.sh <database>"
0
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
8 exit 1
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
9 fi
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
10
19
eb8db0d906de updated runtick.sh to current program
meillo@marmaro.de
parents: 9
diff changeset
11 echo "database '$1'"
0
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
12 echo "started backend cycle at `date +%F\ %H:%M:%S`"
19
eb8db0d906de updated runtick.sh to current program
meillo@marmaro.de
parents: 9
diff changeset
13 ./garten $1
0
831599184108 inital commit
meillo@marmaro.de
parents:
diff changeset
14 echo "finished backend cycle at `date +%F\ %H:%M:%S`"