On Wednesday 10 January 2007 16:38, fredex wrote: > 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. Thanks, Fred. Someone sent me an off-list message to that effect. Another new concept for me :-) Anne
Attachment:
pgpAOx862bFoY.pgp
Description: PGP signature