[nzlug] Telnet in all it's... hmm.... greatness?

Jim Cheetham jim at gonzul.net
Tue Jun 10 15:44:41 NZST 2008


On Tue, Jun 10, 2008 at 2:36 PM, Robin Sheat <robin at kallisti.net.nz> wrote:
> $ POST
> Usage: POST [-options] <url>...

Cool. Make an invocation of POST part of the timeout on the expect
script ... i.e. if if doesn't get a login prompt within 5 seconds, try
to reboot the machine over the web.

expect {
   "login:" { send "$username\r" }
   timeout { system "POST $ipaddress/rebootinfo.cgi"; exit 1}
}



More information about the NZLUG mailing list