Running a Python script from crontab

Astley Le Jasper Astley.lejasper at gmail.com
Thu Dec 4 04:21:50 EST 2008


On Dec 4, 12:34 am, Lawrence D'Oliveiro <l... at geek-
central.gen.new_zealand> wrote:
> In message <mailman.4867.1228330173.3487.python-l... at python.org>, Philip
>
> Semanchuk wrote:
> > In my experience, the environment in which a cron job runs is
> > different from the environment in which some command line scripts run...
>
> Which is true, but again, cron should report the environment in the mail
> message. For example, here are some headers from a recent run of the
> maildir backup task I have scheduled twice a day:
>
>     Subject: Cron <ldo at theon> $HOME/bin/backupdir $HOME/.maildir
>     X-Cron-Env: <SHELL=/bin/sh>
>     X-Cron-Env: <HOME=/home/ldo>
>     X-Cron-Env: <PATH=/usr/bin:/bin>
>     X-Cron-Env: <LOGNAME=ldo>
>     X-Cron-Env: <USER=ldo>

Where do you get the emails from?



More information about the Python-list mailing list