Created
February 8, 2019 07:47
-
-
Save mateothegreat/524fbf7dc0f51f6fb761ccac8a8d00de to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
mycommand & | |
last_pid=$! | |
sleep(60) // 60 seconds | |
kill -KILL $last_pid | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment