![]() A job is run whenever the time, and date matches the current time and date.Ī full cron command will look something like this:Ĭrons scheduled to run at times that can be "skipped" may result in jobs not running when you expect them to. The Cron daemon checks the schedule of each job every minute. Cron CommandsĪ cron command has six fields: five date and time fields, and a command field. If you want to change the email address for a single command, you would set MAILTO directly above the command, and then set MAILTO back to its previous value before the next command. ![]() If you want to change all the email address of all commands, you would need to assign MAILTO at the top of the file. The MAILTO variable will only affect where emails are sent for commands that come after the line it is assigned. If you don't want Cron to send mail, assign MAILTO to the empty string ( MAILTO=""). Mail can be sent to another email address by assigning it to MAILTO. By default, mail is sent to the owner of the crontab. The MAILTO variable is checked to see if mail needs to be sent. SHELL and HOME can be overridden by environment settings, but LOGNAME can not.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |