summaryrefslogtreecommitdiffstats
path: root/retiolum/scripts/adv_graphgen/all_the_graphs.sh
blob: 92c89cc9dfd6bb72da2ce1a3e1b49dd8e5b89143 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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)"