Python does not get environment variable when using cron.

John Machin sjmachin at lexicon.net
Sun Aug 17 22:11:57 EDT 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