Skip to content

Alternative: Using Ruby

pklaus edited this page Apr 2, 2011 · 2 revisions

just to show you that you could as well script the access to the box in the scripting language ruby:

the following code is a proof of concept and its output is found below:

http://gist.github.com/271987#file_netio230a.rb

when I run the script it works:

philipp@lion:~$ ruby netio230a.rb
100 HELLO FF34B315
250 OK
250 1100
110 BYE

So the login worked (response 250 OK), my ports (=power sockets) are (1: on 2: on 3: off 4: off) and then we say goodbye.

Have fun with this information!