[Nottingham] Contab script error

Johannes Kling jok at printk.net
Fri Jul 16 13:17:00 BST 2004


Hello,


> When I run the script manually it works fine.  However when cron
> tries to run it, I get an error report that the 'sweep' command can't
> be found.  'sweep' is located in /usr/local/bin and permission are
> 755.

The PATH for programs execute through cron contains only very few
entries and won't include any of the /usr/local/ directories.
The safest bet is usually to have a line along the lines of:
SWEEP=/usr/local/bin/sweep
at the beginning of cron scripts for anything that's not in /bin and
call programs as:

$SWEEP -options

Regards,
  Johannes



More information about the Nottingham mailing list