Changes to cron in update 7 2006-03-21 - By Tim Evans
Back On Tue, 21 Mar 2006 16:03:56 +0100, Anders Nielsen wrote > I have updated today and this has broken some of my cron jobs. If > > If I put this in in my crontab for the user anielsen > > USER="HELLO WORLD" > * * * * * echo "$USER" > > I now get "anielsen". Before I got "HELLO WORLD".
$USER is the standard OS variable for the userid; if you type your command at the shell prompt, this is what you'll get. Since you are redefining this variable, you probably need to export it in your script. That is:
USER="HELLO WORLD"; export USER echo $USER
-- Tim Evans, TKEvans.com, Inc. | 5 Chestnut Court tkevans@(protected) | Owings Mills, MD 21117 http://www.tkevans.com/ | 443-394-3864 http://www.come-here.com/News/ |
-- Taroon-list mailing list Taroon-list@(protected) https://www.redhat.com/mailman/listinfo/taroon-list
|
|