Make necessary changes and quit pressing :wq keys that save the setting automatically. In the below example will open schedule jobs in VI editor. To edit the crontab entry, use -e the option as shown below. List or manage the task with crontab command with -l option for the current user. Command – The /path/to/command or script you want to schedule.Day of week (hold values between 0-6 or Sun-Sat, Here also you can use the first three letters of each day’s name i.e Sun or Wed.The month of the year (hold values between 1-12 or Jan-Dec, you can use the first three letters of each month’s name i.e Jan or Jun.).Day of Month (hold values between 1-31).The beginning five fields represent time to run tasks and the last field is for command. By default cron is enabled to users, however, we can restrict users by adding an entry in /etc/ny file.Ĭrontab file consists of command per line and has six fields actually and separated either of space or tab. Tips: Each user can have their own crontab to create, modify and delete tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |