diff --git a/macOS_loop.sh b/macOS_loop.sh new file mode 100644 index 0000000..b59f2ca --- /dev/null +++ b/macOS_loop.sh @@ -0,0 +1,12 @@ + +echo 'export PATH=$PATH:/usr/local/bin/chromedriver' >> ~/.zshenv +source ~/.zshenv +if [ `wc -l ./output/output.txt | awk '{print $1}'` -ge "500" ] +then + mv ./output/output.txt "./output/$(date +"%m-%d-%y-%h-%m-%s").txt" +fi +echo 'running script...' >> ./output/output.txt +/bin/date >> ./output/output.txt +/usr/local/bin/node ./TwitToMast.js -tqp -u pogmommy -n 10 >> ./output/output.txt +/usr/bin/pkill Chrome +/usr/bin/killall node