| Start |
|---|
| Execute job once at specific time Note: at is not installed by default on most of modern distributions. To execute a job once at some other time than now, in this example 5pm, you can use If you want to catch the output, you can do that in the usual way:
If no year or date are given, it assumes the next time the time you specified occurs. So if you give a hour that already passed today, it will assume tomorrow, and if you give a month that already passed this year, it will assume next year. This also works together with nohup like you would expect. There are some more commands to control timed jobs:
All commands apply to jobs of the user logged in. If logged in as root, system wide jobs are handled of course. |
| Doing jobs at specified times repeatedly using systemd.timer systemd provides a modern implementation of cron. To execute a script periodical a service and a timer file ist needed. The service and timer files should be placed in /etc/systemd/{system,user}. The service file: Next the timer file: |
Read Article
https://develop.horje.com/learn/1434/reference