Problem Cron-Job using Python-Script

Erik Max Francis max at
Thu Apr 17 01:10:26 CEST 2003

Mathias Waack wrote:

> Gerhard Haering <gh at> wrote:
> > Cron normally doesn't set any environment variables.
> Thats not right, cron sets at least HOME, SHELL and LOGNAME.

It varies from cron daemon to cron daemon.  It's true, though, that cron
rarely sets anything like the full environment that you're used to in an
interactive shell.

If you take a program that relies on external programs and put it in a
cronjob, you should expect to have problems due to the environment
differences.  Most notably, PATH will either be nonexistent or severely

 Erik Max Francis / max at /
 __ San Jose, CA, USA / 37 20 N 121 53 W / &tSftDotIotE
/  \ Would a harvest from my heart / Find its season
\__/ Sandra St. Victor
    Python chess module /
 A chess game adjudicator in Python.

More information about the Python-list mailing list