In Linux, you can schedule any script to be called in regular interval. This tutorial is about to set up script to be run in every minute.
Open the crontab file in your favorite text editor:
$ vim /etc/crontab
Let’s assume that your script is named /home/theuser/script.sh
. Add the following line to the end of the file:
* * * * * /home/theuser/script.sh
The first entry *
defines the interval “at every minute”.