Re: Changes to cron in update 7

"Tim Evans" <[email protected]>
Newsgroups gmane.linux.redhat.release.taroon.general
Message-ID <[email protected]>
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
[email protected]             |    Owings Mills, MD 21117
http://www.tkevans.com/         |    443-394-3864
http://www.come-here.com/News/  |    

--
Taroon-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/taroon-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.