Created
July 21, 2016 16:50
-
-
Save irisli/e89d3e20c25008fe98073ddb52b14879 to your computer and use it in GitHub Desktop.
Run a background task and start it regularly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
while true | |
do | |
./run.sh & | |
sleep 3600 | |
sudo pkill -INT python | |
sleep 5 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment