Re: Python does not get environment variable when using cron.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Maric Michaud

    Re: Python does not get environment variable when using cron.

    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
Working...