[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fwd: Library Cisco Connection

On Thursday 16 August 2012 08:53:34 you wrote:
> ---------- Forwarded message ----------
> From: yehuda finkelstein <yehudafin@xxxxxxxxx>
> Date: Wed, Aug 15, 2012 at 12:00 AM
> Subject: Re: Library Cisco Connection
> To: Harley Burton <hburton@xxxxxxxxxxxxxxx>
> Hi again,
> Thanks for the fast return.
> I want to open ssh connection to cisco router, and configure the router via
> commands, which supposed to be sent via the connection I opened.
> I want that the interaction will be in interactive mode, which means, that
> I will send a command and will read the meassage, then send another
> command, without closing the session after the first time.

You need to find out if it finished or not. So you need to create your own 
messages like.

mycommand && echo OK || echo KO

to find out if it successfully termianted or not. I think Aris explained this 
serveral times already on this list. Check the archive.

A patch to improve the documentation would be great :)

	-- andreas

Andreas Schneider                   GPG-ID: F33E3FC6
www.cryptomilk.org                asn@xxxxxxxxxxxxxx

Fwd: Library Cisco Connectionyehuda finkelstein <yehudafin@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org