Here's a simple small expect script ... I call it "phreboot", usage: phreboot IP
$ phreboot 10.99.1.1 -- cut here -- #!/usr/bin/expect -f set timeout -1 spawn $env(SHELL) match_max 10000 send -- "telnet [lrange $argv 0 0]\r" expect -exact "word :" send -- "cisco\r" expect -exact "Phone> " send -- "reset\r" send -- "" _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
