Next: , Previous: , Up: Features   [Contents][Index]


5.5 Variable Assignments in Crontabs

Variable assignments can appear anyplace in a crontab. The modified environment remains in effect for all subsequent commands until changed by another assignment or the end of file is reached, whichever happens first. For example, the output of the following two example entries is mailed to two different users:

MAILTO=one
* * * * * command one
MAILTO=two
* * * * * command two