[luau] sudo and cron

Randall Oshita roshita at hpu.edu
Wed Nov 19 14:46:00 PST 2003


>>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


>>Gross! Sudo should work here, but I prefer su. It should work the
>>same though.

I also used expect but just figured sudo would be much simplier. try something new.
 
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.
 
Thanks.
Randall

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3702 bytes
Desc: not available
URL: <http://lists.freesoftwarehawaii.org/pipermail/luau-freesoftwarehawaii.org/attachments/20031119/00ded20d/attachment-0001.bin>


More information about the LUAU mailing list