Using commands with clogin that require confirmation

David LaPorte david_laporte at harvard.edu
Mon Oct 3 15:29:09 UTC 2005


Using "\n" has worked for us.  The following is an example showing an
ACL being uploaded via the interactive prompts on a 6509 running native IOS:

-c "conf net\nhost\n192.168.1.1\nACL/123-routergw1.ip\n;wr mem"

Dave

Saku Ytti wrote:
> On (2005-10-03 16:09 +0100), Jee Kay wrote:
> 
>> Is there any way to force clogin to, fx, wait 1 second, hit enter, and
>> _then_ expect the prompt again? I've tried various combinations of -c
>> 'clear count;;' but it doesn't seem to send anything until it has seen
>> a new prompt.
> 
>  Waiting probably doesn't work, but \r should work. You should have
> all in one line, until you're back in the prompt.
>



More information about the Rancid-discuss mailing list