Python does not get environment variable when using cron.

Maric Michaud maric at aristote.info
Mon Aug 18 07:20:59 EDT 2008


Le Monday 18 August 2008 07:11:59 Cameron Simpson, vous avez écrit :
> You're probably confused by the fact that cron does not invoke "login"
> shells (with their associated initialisation from /etc/profile and
> $HOME/.profile).

This can be solved by invoking /bin/bash -l -c ..., the -l option forces a 
login shell even in non-interactive session.

-- 
_____________

Maric Michaud



More information about the Python-list mailing list