garten

changeset 19:eb8db0d906de

updated runtick.sh to current program
author meillo@marmaro.de
date Wed, 23 Jul 2008 17:44:15 +0200
parents 5937504619f2
children 17b2bcc42d72
files main.c runtick.sh
diffstat 2 files changed, 2 insertions(+), 14 deletions(-) [+]
line diff
     1.1 --- a/main.c	Wed Jul 23 17:40:55 2008 +0200
     1.2 +++ b/main.c	Wed Jul 23 17:44:15 2008 +0200
     1.3 @@ -5,7 +5,6 @@
     1.4  
     1.5  
     1.6  void init(void) {
     1.7 -	/* echo "started backend cycle at `date +%F\ %H:%M:%S`" */
     1.8  	db_connect();
     1.9  	read_time();
    1.10  }
    1.11 @@ -13,7 +12,6 @@
    1.12  
    1.13  void cleanup(void) {
    1.14  	db_close();
    1.15 -	/* echo "finished backend cycle at `date +%F\ %H:%M:%S`" */
    1.16  }
    1.17  
    1.18  
    1.19 @@ -34,7 +32,6 @@
    1.20  		exit(1);
    1.21  	}
    1.22  	database = argv[1];
    1.23 -	printf("database '%s'\n", database);
    1.24  	init();
    1.25  
    1.26  	/* modules */
     2.1 --- a/runtick.sh	Wed Jul 23 17:40:55 2008 +0200
     2.2 +++ b/runtick.sh	Wed Jul 23 17:44:15 2008 +0200
     2.3 @@ -8,16 +8,7 @@
     2.4  	exit 1
     2.5  fi
     2.6  
     2.7 -database="$1"
     2.8 -
     2.9 -echo "database '$database'"
    2.10 +echo "database '$1'"
    2.11  echo "started backend cycle at `date +%F\ %H:%M:%S`"
    2.12 -
    2.13 -./bin/clock $database
    2.14 -./bin/weather $database
    2.15 -./bin/environment $database
    2.16 -#./bin/market $database
    2.17 -./bin/growth $database
    2.18 -#./bin/orderexec $database
    2.19 -
    2.20 +./garten $1
    2.21  echo "finished backend cycle at `date +%F\ %H:%M:%S`"