seo info / cronjob - cron howtoWhere are the Cronjob files?To edit your cron file, simply type crontab -e and the file is opened in the standard editor. Another way to execute a script on a regular basis is to copy it to the cron directories. There are /etc/cron.daily and /etc/cron.monthly. Format of the crontab file?The general formating of the crontab file is: minute | hour | day of month | month | day of week | command Each of the fields may contain one or more of the following values:
Example cronjobs using crontab0 12 * * * /root/myscript.sh More crontab entriesWith the above examples it is possible to run script or commands at a certain moment, using a cronjob. But it is not possible to run the script for example every 5 minutes or every second day. Do do that, there are a few more crontab entries. Below are a few examples together with their explanation. */5 * */2 * * /root/myscript.sh 10 3,9,15,21 * * 1-5 /root/myscript.sh Special cronjob callsThere are the following special calls for cronjobs.
|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| 1 | 2 | 3 | 4 | ![]() |
6 | 7 | 8 | 9 | 0 |
![Homepage [Alt]+[1] HOME / Christian Steimel](/img/link-home.gif)
![Contact [Alt]+[2] CONTACT / Christian Steimel](/img/link-contact.gif)
![About me [Alt]+[3] ABOUT ME / Christian Steimel](/img/link-about.gif)
![Photos [Alt]+[4] PHOTOS / Christian Steimel](/img/link-fotos.gif)
![Websites [Alt]+[5] WEBSITES / Christian Steimel](/img/link-websites.gif)
![Stuff [Alt]+[6] STUFF / Christian Steimel](/img/link-stuff.gif)
![Language [Alt]+[7] LANGUAGE / Christian Steimel](/img/link-language.gif)
![Newsfeed [Alt]+[8] NEWSFEED / Christian Steimel](/img/link-newsfeed.gif)
![Words [Alt]+[9] WORDS / Christian Steimel](/img/link-words.gif)
![Turn off the web site [Alt]+[0] OFF](/img/link-off.gif)
