From owner-freebsd-isp Thu Mar 16 14:20:45 2000 Delivered-To: freebsd-isp@freebsd.org Received: from bayer2.bayer-ag.de (bayer2.bayer-ag.de [194.120.191.2]) by hub.freebsd.org (Postfix) with SMTP id 2C48637C215 for ; Thu, 16 Mar 2000 14:20:42 -0800 (PST) (envelope-from andreas.klemm.ak@bayer-ag.de) Received: from BYE473.BAYER-AG.DE (bye473.bayer-ag.com) by bayer2.bayer-ag.de with SMTP id SAA24965 (SMTP Gateway 4.2 for ); Wed, 15 Mar 2000 18:14:44 +0100 Received: by BYE473.BAYER-AG.DE (Soft-Switch LMS 3.2) with snapi via MT0044 id 0006800021652959; Wed, 15 Mar 2000 18:15:30 +0100 From: andreas.klemm.ak@bayer-ag.de To: " - *freebsd-isp@freebsd.org" Subject: how to get .logout evaluated, when using remote copy (rcp) Message-Id: <0006800021652959000002L092*@MHS> Date: Wed, 15 Mar 2000 18:15:30 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi ! 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 ? Andreas /// To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message