Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2000 19:40:16 -0500 (EST)
From:      <up@3.am>
To:        andreas.klemm.ak@bayer-ag.de
Cc:        "        -         *freebsd-isp@freebsd.org" <freebsd-isp@freebsd.org>
Subject:   Re: how to get .logout evaluated, when using remote copy (rcp)
Message-ID:  <Pine.BSF.4.10.10003161937240.21730-100000@richard2.pil.net>
In-Reply-To: <0006800021652959000002L092*@MHS>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 15 Mar 2000 andreas.klemm.ak@bayer-ag.de wrote:

> Want to save my cisco router configs with rcp.
> 
> Every router has an account of it%s own on the Unix host.
> This prevents overwriting of configs.
> 
> If the remote user on the Unix host has csh as shell,
> I can make use of .cshrc, to set a secure umask (077).
> 
> Now I want to make use of the .logout file to make a backup
> of the router config after the rcp session terminates.
> 
> But .logout  will not be executed.
> 
> Well, I think it makes a difference for csh if you have an interactive
> or a remote session.
> 
> Is there perhaps a way to fake something in .cshrc, to make csh think
> it has to execute .logout after rcp ?

Frankly, it's news to me that Ciscos support rcp (do they?).  Why don't
you just save the config using tftp?

cisco# copy run tftp

The man pages tell you all about tftp, but it's basically just a matter of
uncommenting it in inetd, HUPing inetd, then

mkdir /tftpboot
touch /tftpboot/cisco-confg

James Smallacombe		      PlantageNet, Inc. CEO and Janitor
up@3.am							    http://3.am
=========================================================================



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10003161937240.21730-100000>