Jobs scheduling in Linux

Depending on the kind of task to be completed and when and how it must be completed, several tools are available depending on the use case.


One time : at, batch

Repeated tasks : cron

Repeated tasks when the server is not always powered on : anacron

In the $HOME/.anacron/etc/anacrontab file, $HOME and $LOGIN variables must be set with the user account login name.

Finally, the following line must be added to $HOME/.profile :

   **/usr/sbin/anacron -s -t $HOME/.anacron/etc/anacrontab -S $HOME/.anacron/spool**

Cron job generator and tester

Systemd timer generator

Systemd - timers

Back to top