View Full Version : Some basic syntax examples for LUA

November 7th, 2008, 07:59 AM
-- set a netremote variable from Girder
NetRemote.SetVariable("washer", "off")

-- set a netremote image from Girder
NetRemote.SetImage("MCJ_PwrSwitch_S1", "C:\\Program Files\\Promixis\\Girder5\\User\\images\\led-blue.png")

-- execute a command from Girder
-- in this example it will issue a psshutdown to a laptop with the hostname toshiba-nr
os.execute([[psshutdown \\toshiba-nr -u touchscreen1 -p password -d -t 5 -c]])