[TriLUG] expect question

Greg Brown gwbrown1 at gmail.com
Mon Mar 9 14:36:53 EDT 2009


So I've got a simple script.  So far it logs into a router and goes to
enable mode.

I'd like to issue the command 'show run' then capture that output and write
it to a log file.  So far the expect script opens the log file but for the
life of me I can't seem to capture the 'show run' output write that to the
file.

Can anyway share an example of how to do this?

Greg



More information about the TriLUG mailing list