>> 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.