How to run a command in Linux every few seconds
Cron is a big story, if you want something simple to run a simple command every few seconds on linux you can use a little thing called watch
An example is watch -n 5 firefox
That is, Firefox will open every 5 seconds.
Check it out, type watch in your terminal:
Usage: watch [-dhntv] [–differences[=cumulative]] [–help] [–interval=<n>] [–no-title] [–version] <command>