4 Nov
2006
4 Nov
'06
09:07
On 2006-11-04 01:55, Jon Clausen wrote:
<snip> IINM it may all be summarized to something like;
If you want to set a variable for a single command in the crontab, without affecting subsequent commands, use
* * * * * /path/to/unaffected * * * * * env VAR=val /path/to/command * * * * * /path/to/othercommand
Well, it certainly makes sense that the environment setting applies only to that one command, and the following is quite correct (can't recall just where I read that, certainly not the man page :-) )
If you want to set a var for all subsequent commands in the crontab, use
* * * * * /path/to/unaffected VAR=value * * * * * /path/to/command * * * * * /path/to/othercommand
But that's all supposition...
/Jon