From owner-freebsd-isp Thu Mar 16 16:40:28 2000 Delivered-To: freebsd-isp@freebsd.org Received: from richard2.pil.net (richard2.pil.net [207.8.164.9]) by hub.freebsd.org (Postfix) with SMTP id 09FC437C1F6 for ; Thu, 16 Mar 2000 16:40:26 -0800 (PST) (envelope-from up@3.am) Received: (qmail 22109 invoked by uid 1825); 17 Mar 2000 00:40:16 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 Mar 2000 00:40:16 -0000 Date: Thu, 16 Mar 2000 19:40:16 -0500 (EST) From: X-Sender: up@richard2.pil.net To: andreas.klemm.ak@bayer-ag.de Cc: " - *freebsd-isp@freebsd.org" Subject: Re: how to get .logout evaluated, when using remote copy (rcp) In-Reply-To: <0006800021652959000002L092*@MHS> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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