Multi-line commands

Nipper, Arnold arnold at nipper.de
Tue Nov 11 00:08:44 UTC 2003


Tnx a lot! If you run the command from the shell a simple backslash does.


Arnold


On Tuesday, November 11, 2003 12:49 AM, David LaPorte
<david_laporte at harvard.edu> wrote:
> try using the "\\n" construct (an escaped newline).  For instance:
>
> $clogin -f $cloginrc -u '$username' -p '$password' -c \"conf
> net\\nhost\\n$tftphost\\n$tftpacldir/$acls\"
>
> this above is from a perl script - you may only need "\n" if you're
> running it from the prompt.
>
> On Tue, 11 Nov 2003, Nipper, Arnold wrote:
>
>> I'm using rancid since a couple of months and find it very valuable esp.
>> when retrieving the same information from a lot of routers/switches.
>>
>> There are some commands on the catalyst 6500 which require multiple lines
of
>> input (e.g. "clear counters" where you will be prompted for "Do you want
to
>> continue (y/n) [n]?").
>>
>> With IOS and telnetting into a router I've been successful (iirc) when
>> separating the commands by "^M" (i.e. Ctrl-M). But that doesn't work with
>> CatOS and rancid.
>>
>> How do you deal with multi-line comamnds?
>>
>>
>> Regards, Arnold





More information about the Rancid-discuss mailing list