-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrun_them.sh
28 lines (21 loc) · 1.02 KB
/
run_them.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
#!/bin/bash
# Number of loops
LOOPS=100
# Timeout duration (set this variable before running the script)
TOUT=${TOUT:-10} # Default to 10 seconds if TOUT is not set
# Loop through the commands 100 times
for ((i=1; i<=LOOPS; i++)); do
echo "Iteration $i of $LOOPS"
# Execute each command with a timeout
timeout $TOUT run_spectrum_saturation_cycler.py
timeout $TOUT path_between_2_colors.py
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -z -y -g -u 33
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "~^." -z -y -u 30 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "===" -z -r -g -u 40 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "#####" -z -n -r -u 20 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "||--==" -z -g -y -u 60 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "XOxo." -z -r -y -u 25 -f
timeout $TOUT run_color_module_RGB_HSV_HEX_demo.py -b "-|" -z -g -u 15 -f
echo "Completed iteration $i"
done
echo "All iterations complete!"