Skip to content

Instantly share code, notes, and snippets.

@cristianoliveira
Created October 5, 2016 20:47
Show Gist options
  • Save cristianoliveira/107991233b9258645f6edb2f180c8e24 to your computer and use it in GitHub Desktop.
Save cristianoliveira/107991233b9258645f6edb2f180c8e24 to your computer and use it in GitHub Desktop.
Run your command each time
#!/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