This repository has been archived on 2025-03-19. You can view files and clone it, but cannot push or open issues or pull requests.
TwitToMast/macOS_loop.sh
Penelope Gwen / Pogmommy 05871cb662
Add files via upload
2023-02-21 10:56:37 -07:00

12 lines
451 B
Bash

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 -[arguments] -u [username] -n [tweetcount] >> ./output/output.txt
/usr/bin/pkill Chrome
/usr/bin/killall node