Created
October 5, 2016 20:47
-
-
Save cristianoliveira/107991233b9258645f6edb2f180c8e24 to your computer and use it in GitHub Desktop.
Run your command each time
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
#!/bin/bash | |
# usage: cron.sh <your_command> <sleep_duration> | |
while :; | |
do | |
clear | |
date | |
$1 | |
sleep $2 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment