| crontab command |
|
|
| Computing - Linux |
|
crontab command found in *ix Operating Systems is used to schedule tasks that have to be run at periodic intervals. These tasks or jobs that have been so scheduled are known as cron jobs.
Each user can have their own crontab. If cron.allow file exists in /var directory, then a user must be listed in that file in order to use the command. If no cron.allow file exists but cron.deny exists, then the user must not be listed in the cron.deny file to use the crontab command. If both cron.allow and cron.deny files are not available, then only the 'root' user can execute the command. Usage A crontab file takes in five arguments (such as minutes, hours, day etc) followed by the command to be executed. Any of these fields can also have * (asterix) as a value (denotes all possible values). Minutes: 0 - 59 Example Let us assume all the files under 'wip' directory have to deleted on a daily basis at 8:30 P.M. The crontab for this example would be as follows:
Syntax
Set as favorite
Bookmark
Email This
Hits: 888 Trackback(0)
Comments
(0)
|
| Last Updated on Monday, 12 November 2007 20:48 |



