summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-10-02 20:48:21 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-10-02 20:48:21 +0100
commit3a047738c45963b19db09af23e7cc5752e88cdf5 (patch)
tree3c8208b66057ec0ef88e22f7e50765bfe5b5f088
parentb8814cd12f1ca92b137915e092e94980c3674787 (diff)
forgot to kill the monitor processes on quit...HEADmaster
-rwxr-xr-xcompbench.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/compbench.sh b/compbench.sh
index 276c345..2250f1f 100755
--- a/compbench.sh
+++ b/compbench.sh
@@ -5,7 +5,13 @@ name=$1
5comp_pid=$! 5comp_pid=$!
6 6
7(./cpu.sh > ${name}_cpu.log) & 7(./cpu.sh > ${name}_cpu.log) &
8cpu_pid=$!
8(./mem.sh > ${name}_mem.log) & 9(./mem.sh > ${name}_mem.log) &
10mem_pid=$!
9(./bat.sh > ${name}_bat.log) & 11(./bat.sh > ${name}_bat.log) &
12bat_pid=$!
10 13
11wait $comp_pid 14wait $comp_pid
15kill $cpu_pid
16kill $mem_pid
17kill $bat_pid