[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: can't add cron job



Roberto Sanchez said on Tue, Apr 15, 2003 at 10:42:13PM -0400:
> This is the cron job I just added for ipcheck.  It is located in 
> /etc/cron.d/ipcheck
> 
> # Run ipcheck every 2 minutes
> */2 *     * * *     python ipcheck.py -l -r checkip.dyndns.org:8245 
> <username> <password> <hostname>
> 
> The job is not running, though.  I even executed '/etc/init.d/cron restart' 
> to restart cron, but it did not help.  When I log into dyndns.org and 
> lookup the IP address in the database for my host, it still show an out of 
> date IP address.  Am I missing something here?

You probably need to specify the full path to ipcheck.py... crontab's working
directory is either / or $HOME of the user that cron is running the job under,
which is probably not where ipcheck.py is located.

M

Attachment: pgpeT088uHJEc.pgp
Description: PGP signature


Reply to: