jwilson56
November 7th, 2008, 05: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]])
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]])