For Programmers: Free Programming Magazines  


Home > Archive > Tcl > September 2006 > Re: Expect for Windows NEWBIE question 'Broken pipe while executing' cisco router tel









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Expect for Windows NEWBIE question 'Broken pipe while executing' cisco router tel
Jake

2006-09-24, 7:03 pm

Ok the broken pipe is caused by this line of code:

expect "(config)#" {exp_send -s "exit\r"}


The 'exit' command must be some sort of TCL command that exits the
telnet cmd window, i don't know but it get further with:

expect "(config)#" {exp_send -s "end\r"}


I have got past this problem but now the spawned process goes a little
further but then exits without completing or generating an error???

S'pose I will slog on, but any input would be greatly received :-)

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com