-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfollower_heuristic_eval_all.sh
executable file
·38 lines (37 loc) · 1.17 KB
/
follower_heuristic_eval_all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
split="test"
#split="val"
reactivity="1"
#reactivity="4"
args_list=(
"$split 12 $reactivity 49184 0"
"$split 12 $reactivity 92999 1"
"$split 12 $reactivity 98506 2"
"$split 21 $reactivity 49184 3"
"$split 21 $reactivity 92999 4"
"$split 21 $reactivity 98506 5"
"$split 27 $reactivity 49184 6"
"$split 27 $reactivity 92999 7"
"$split 27 $reactivity 98506 0"
)
echo
echo "==================================================="
echo "Starting with args:"
for args in "${args_list[@]}"; do
echo "$args"
done
echo "==================================================="
echo
for args in "${args_list[@]}"; do
screen_name=$(echo "$args" | tr ' ' '-')
if screen -ls | grep -q "$screen_name" >/dev/null; then
screen -S "$screen_name" -X kill
echo "Restart screen $screen_name"
else
echo "Starting screen ${screen_name}"
fi
screen -dmS "${screen_name}" bash -c "./follower_heuristic_eval.sh ${args}"
done
echo "============================================================================"
echo "All sessions started. See screen -ls. After run screens close automatically."
echo "============================================================================"