[newbie] Why does cron not use the same path as created by profile

Doug Ransom newbie@vlug.org
Sun, 14 Mar 2004 20:29:08 -0800


Is there a good reason (security, etc.) that cron by default doesn't use 
the same path as the users login profile.

I had to put this in to make cron pick up /usr/local/bin

PATH=/usr/local/bin:/usr/bin:/bin

The Fedora /etc/profile does some cool things to create the path (it 
runs every shell script in profile.d), it would be nice if cron would 
pick that all up. 

Anyone know any tricks to make cron use the same path as the user 
running crontab?


Doug