Page 1 of 1

Grandma2 and Smarthub 40x40 12G

PostPosted: Mon Oct 15, 2018 7:28 pm
by Jayme McColgan
hey guys, I have a grandma2 lighting console and a smart hub 40x40 12G. I'm trying to send some commands to the smart hub over Telnet. here's the command string I'm using in my script. its able to login to the device and pull the prelude but it gets stuck after that and doesn't enter any of the commands.

Code: Select all
local function main()
os.execute('telnet 192.168.1.100 9990 \n video output routing: \n 33 2 \n \n')
end
return main
 


any help would be appreciated! thanks, guys

Re: Grandma2 and Smarthub 40x40 12G

PostPosted: Thu Oct 18, 2018 1:02 am
by Cameron Nichols
Hi Jayme,

You should remove the spaces surrounding the \n in your os.execute command.

Also, if possible, you should delay the "video output routing" command until the "END PRELUDE:" command is received.

Regards
Cameron

Re: Grandma2 and Smarthub 40x40 12G

PostPosted: Thu Oct 18, 2018 1:06 am
by Jayme McColgan
good idea! also, how do you insert a pause? I've tried several commands and nothing seems to work. these commands will be dumped into a windows command prompt or a Linux terminal if that helps.

I've tried splitting up the os.ececture commands to run in order n their own and that also doesn't work for some reason.