[cisco-voip] Non-interactive CLI commands?
Robert Kulagowski
rkulagow at gmail.com
Wed Nov 28 10:59:48 EST 2007
jean-francois.guay at bell.ca wrote:
> By issuing the
>
> # copy http://<filename url> flash:<destination filename> *enter* +
> *enter*
>
> in your script, you should not have to enter additionnal information and
> the router should go on its way. The second *enter*/line feed confirms
> the command for you by responding automatically to the router
> confirmation dialog for which "yes" is the default answer.
>
> I don't think that should be too hard to implement, probably requirering
> an extra "\n" or two in your script.
That's exactly what it was - I simply added in the \n into my clogin
command and increased the timeout. A simple for i in {foo} loop in bash
did the rest and if I'm not careful I might script myself out of a job!
More information about the cisco-voip
mailing list