1

Crontab sourcing PATH?

view story
linux-howto

http://www.unix.com – Hi, Im trying to run script A which requires path /sbin. I have a crontab entry to run script A every 10 minutes. Script A is executed fine by cron, but because script A requires /sbin in its path it fails to run. My situation is script A get overwritten from time to time so I can't modify script A to set path in there. So my question is... Is it possible to execute script A in cron by sourcing the path somehow without setting the path in the script. I've tried exporting PATH and running the script but it seems like when the script executes, it is running with the default cron PA (HowTos)