diff options
author | Bryson Steck <steck.bryson@gmail.com> | 2022-03-11 17:01:39 -0700 |
---|---|---|
committer | Bryson Steck <steck.bryson@gmail.com> | 2022-03-11 17:01:39 -0700 |
commit | 547e0a79df903f4f5cb8ceb0e5203901bd43ea19 (patch) | |
tree | 1990d13be9a2e90f896646eca4210fc4b9c14ad8 /run.sh | |
parent | 9eb5b3102216ea60169acff71c15e13db0264e44 (diff) | |
download | lset-547e0a79df903f4f5cb8ceb0e5203901bd43ea19.tar lset-547e0a79df903f4f5cb8ceb0e5203901bd43ea19.tar.gz lset-547e0a79df903f4f5cb8ceb0e5203901bd43ea19.tar.bz2 |
implemented shell scripts, testing
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -0,0 +1,17 @@ +cd twitch-bot +node bot.js & +BOT_PID=$! +cd ../follow-src +python3 source.py & +SCRIPT_PID=$! + +echo "The Twitch bot and Source script is now running. You can stop this script by typing \"stop\"" + +while read input; do + case $input in + stop) kill $BOT_PID; kill $SCRIPT_PID; break;; + esac + echo "You can stop this script by typing \"stop\"" +done + + |