[CentOS] weird cron problem
Robert
kerplop at sbcglobal.netFri Nov 16 13:26:27 UTC 2007
- Previous message: [CentOS] weird cron problem
- Next message: [CentOS] Problem running a setuid Perl script on CentOS 4.5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Andreas Kuntzagk wrote: >> PATHS - everytime i have cron issues its a PATH problem. The cron env is >> not the same as the user when logged in >> > > Thanks, that's probably the cause. rsnapshot resides in /usr/local/bin > I changed the PATH in /etc/crontab now. Silly that I didn't see it. > So jobs in /etc/crontab are executed with the PATH in there, but jobs in > roots crontab are executed with the PATH set in .bashrc? > > Andreas > You can prove to yourself quite easily that $PATH gets manipulated. Simply make a crontab entry like this in root's crontab: * * * * * echo $PATH >> /root/cronpath and compare the entries in the resulting file with the command line output of # echo $PATH (Don't forget to remove that crontab entry when finished playing.)
- Previous message: [CentOS] weird cron problem
- Next message: [CentOS] Problem running a setuid Perl script on CentOS 4.5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list