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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Edwin.Madari@VerizonWireless.com

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

    source in or execute .profile (or .bash_profile which ever is applicable toyou) as a first thing in the cron to get environment variables.

    hope that helps.
    Edwin

    -----Original Message-----
    From: python-list-bounces+edwin.m adari=verizonwi reless.com@pyth on.org
    [mailto:python-list-bounces+edwin.m adari=verizonwi reless.com@pyth on.org]
    On Behalf Of Eric Wertman
    Sent: Sunday, August 17, 2008 9:39 PM
    To: python-list@python.org
    Subject: Re: Python does not get environment variable when using cron.


    I'm not sure about the environment variable, but os.uname() should
    give you what you need otherwise.
    --




    The information contained in this message and any attachment may be
    proprietary, confidential, and privileged or subject to the work
    product doctrine and thus protected from disclosure. If the reader
    of this message is not the intended recipient, or an employee or
    agent responsible for delivering this message to the intended
    recipient, you are hereby notified that any dissemination,
    distribution or copying of this communication is strictly prohibited.
    If you have received this communication in error, please notify me
    immediately by replying to this message and deleting it and all
    copies and backups thereof. Thank you.


Working...