[luau] sudo and cron

Vince Hoang luau at ml.altern8.net
Wed Nov 19 15:26:00 PST 2003


On Wed, Nov 19, 2003 at 02:49:36PM -1000, Randall Oshita wrote:
> 
> >>I meant you left out [s]bin when fully qualifying the path:
>  >> 30 1 * * * * /usr/local/sudo "/export/home/x/restart_script"
> >>You had /usr/local/sudo instead of /usr/local/bin/sudo.
> 
> AHH yes! muhahahhahaha

PEBKAC!

> Anywyas, i decieded to put the PATH within the script rather
> than the crontab. works good. I learned that cron DOSE NOT take
> the environment as the user. you need to respecify.

A PATH within the script helps the script run. A PATH within crontab
helps cron run. Again, it depends on your installation of cron.

/me guesses Randy runs Solaris.

I can live w/o PATH and SHELL in crontabs, but not having MAILTO
is really annoying.

-Vince



More information about the LUAU mailing list