On Wed, Jan 10, 2007 at 12:03:47PM +0000, Anne Wilson wrote: > On Wednesday 10 January 2007 11:48, Ed Greshko wrote: > > Anne Wilson wrote: > > > I have a problem, Steve. Running that command from a root konsole works > > > fine, so I set it to run as a cron job every Wednesday. Now I find that > > > from both boxes where I set this up I'm getting root emails that say > > > > > > /bin/sh: tmpwatch: command not found > > > > > > What could be wonrg? > > > > Use the full pathname. /usr/sbin/tmpwatch > > > Thanks, Ed. That seems to have cured it - at least 'Run now' worked fine. I > just assumed that it would be on root's path, so didn't need the full > pathname. > > Anne Anne: You may find it helpful to look at the man page for crontab(5) (man 5 crontab), as it tells how to set up a proper environment for cron jobs. The implication is that you don't have a full envrionment set up when cron runs a job. -- ------------------------------------------------------------------------------- .---- Fred Smith / ( /__ ,__. __ __ / __ : / / / / /__) / / /__) .+' Home: fredex@xxxxxxxxxxxxxxxxxxxxxx / / (__ (___ (__(_ (___ / :__ 781-438-5471 -------------------------------- Jude 1:24,25 ---------------------------------
Attachment:
pgpz6YjtZnPK2.pgp
Description: PGP signature