Python does not get environment variable when using cron.

John Machin sjmachin at lexicon.net
Mon Aug 18 04:11:57 CEST 2008


On Aug 18, 11:38 am, "Eric Wertman" <ewert... at gmail.com> wrote:
> I'm not sure about the environment variable, but os.uname() should
> give you what you need otherwise.

As documented, it should but may not ... consider using
socket.gethost*




More information about the Python-list mailing list