summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xretiolum/scripts/adv_graphgen/all_the_graphs.sh27
1 files changed, 14 insertions, 13 deletions
diff --git a/retiolum/scripts/adv_graphgen/all_the_graphs.sh b/retiolum/scripts/adv_graphgen/all_the_graphs.sh
index 92c89cc9..0499e9c7 100755
--- a/retiolum/scripts/adv_graphgen/all_the_graphs.sh
+++ b/retiolum/scripts/adv_graphgen/all_the_graphs.sh
@@ -1,14 +1,15 @@
#!/bin/bash
-echo "`date` begin all graphs" >> /tmp/build_graph
-cd $(dirname $(readlink -f $0))
-PATH=$PATH:../../../util/bin/
-export LOG_FILE=/var/log/retiolum.log
-begin=`timer`
-(./anonytize.sh /srv/http/pub/graphs/retiolum/ && echo "`date` anonytize done" >> /tmp/build_graph)&
-(./sanitize.sh /srv/http/priv/graphs/retiolum/ && echo "`date` sanitize done" >> /tmp/build_graph)&
-for job in `jobs -p`
-do
- echo $job
- wait $job || echo "$job failed!"
-done
-graphitec "retiolum.graph.buildtime" "$(timer $begin)"
+set -x
+
+(
+ 1>>/tmp/build_graph
+ echo "`date` begin all graphs" >> /tmp/build_graph
+ cd $(dirname $(readlink -f $0))
+ PATH=$PATH:../../../util/bin/
+ export LOG_FILE=/var/log/retiolum.log
+ begin=`timer`
+ (./anonytize.sh /srv/http/pub/graphs/retiolum/ && echo "`date` anonytize done" >> /tmp/build_graph)&
+ (./sanitize.sh /srv/http/priv/graphs/retiolum/ && echo "`date` sanitize done" >> /tmp/build_graph)&
+ wait
+ graphitec "retiolum.graph.buildtime" "$(timer $begin)" &>>/tmp/build_graph
+)&