[rancid] Re: Cisco commands containing ';'...

Jon Peatfield J.S.Peatfield at damtp.cam.ac.uk
Wed Sep 16 17:57:49 UTC 2009

On Wed, 16 Sep 2009, john heasley wrote:

> Wed, Sep 16, 2009 at 01:37:35PM -0400, Ryan West:
>> Have you tried an escape "\" ?
> that will not work.  We'd have to add logic to do that.  I'd lean toward
> doing that.  one hack option would be to encode it as its ascii value;
> 59 or 0x3b.  But, I dont recall off the top how to do that encoding for
> tcl's printf (expect's send).

It works if I put \073 instead of ; e.g

  clogin -x filename ...

where filename contains:

conf t
boot system 

ie putting \073 where I want the ;...


Many thanks.

  -- Jon

More information about the Rancid-discuss mailing list