Re: Checking HOSTNAME in an ipelet

Dmitriy Morozov <[email protected]>
Newsgroups gmane.comp.graphics.ipe.general
Message-ID <[email protected]>
>> if os.getenv("HOSTNAME") == "cole" then
>
> Ipelets run in a protected environment.
>
> Use _G.os.getenv to access the getenv function.

_G.os.getenv("HOSTNAME") returned nil, whereas from within Lua
interpreter it returns the actual hostname.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.