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.