diff options
author | Matt Strapp <strap012@umn.edu> | 2021-04-29 11:10:47 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2021-04-29 11:10:47 -0500 |
commit | 8bebafccdfe97f5e31b0a3260e47de6b8adaae25 (patch) | |
tree | b20b2f3145a2c4ed6cf8e6dc8b009b13a35ae378 | |
parent | Fix some errors and rearrange some variables (diff) | |
download | csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.gz csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.bz2 csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.lz csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.xz csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.tar.zst csci4511w-8bebafccdfe97f5e31b0a3260e47de6b8adaae25.zip |
Allow non-log shell usage
Diffstat (limited to '')
-rwxr-xr-x | start.sh | 33 |
1 files changed, 21 insertions, 12 deletions
@@ -29,19 +29,28 @@ do ;; esac done -echo "" -read -p "Columns of board: " c -read -p "Rows of board: " r -read -p "Number of games to run: " n -read -p "Output file name (please include '.csv'): " o -echo "" -read -p "This will now run with the given arguments in the foreground. Hit enter to confirm." TRASH -(python3 python/evaluate.py -c $c -r $r -n $n -o $o ws://127.0.0.1:20001 ws://127.0.0.1:20002) > evaluate.log -echo "" -echo "Log of evaluate python script located in evaluate.log" -echo "Evaluate has finished! Check the output in $o" -echo "Press enter to finish." +read "Do you want to run the logger? (Y/N)" log +case $log in + 'Y' | 'y') + echo "" + read -p "Columns of board: " c + read -p "Rows of board: " r + read -p "Number of games to run: " n + read -p "Output file name (please include '.csv'): " o + echo "" + read -p "This will now run evaluate.py with the given arguments in the foreground. Hit enter to confirm." TRASH + (python3 python/evaluate.py -c $c -r $r -n $n -o $o ws://127.0.0.1:20001 ws://127.0.0.1:20002) > evaluate.log + echo "" + echo "Log of evaluate python script located in evaluate.log" + echo "Evaluate has finished! Check the output in $o" + ;; + *) + echo "Web interface available at http://127.0.0.1:8080" + ;; + + +echo "Press enter to exit, killing all agents and the web server." read TRASH; trap "exit" INT TERM |