[nmglug] expect

Aaron Birenboim NMOSUG eunichs at boim.com
Tue May 23 16:32:58 PDT 2006


I need a script to re-boot my router every day or so.
Too many outages.  (Cisco 678)

Anybody have an expect script (or similar) to do this?

Session would look something like:

telnet 10.0.0.1 << EOF
userPassword
en
SuperUserPassword
reboot
EOF

of course we may need some 'expects' in between
so the above responses come only AFTER the appropriate prompts.

            aaron






More information about the nmglug mailing list