From owner-freebsd-hackers Tue Jan 30 8:16: 4 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from modemcable101.200-201-24.mtl.mc.videotron.ca (modemcable140.61-201-24.mtl.mc.videotron.ca [24.201.61.140]) by hub.freebsd.org (Postfix) with SMTP id 4796437B503 for ; Tue, 30 Jan 2001 08:15:47 -0800 (PST) Received: (qmail 75789 invoked from network); 30 Jan 2001 16:15:45 -0000 Received: from cognac.local.mindstep.com (HELO cognac) (192.168.10.9) by jacuzzi.local.mindstep.com with SMTP; 30 Jan 2001 16:15:45 -0000 From: "Patrick Bihan-Faou" To: Cc: Subject: RE: Bash2 removes SSH_CLIENT from the environment Date: Tue, 30 Jan 2001 11:17:05 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <1010130154626.AA70376.SM@nike.INS.CWRU.Edu> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Also the content of SSH_CLIENT may be of intereset (namely the > remote IP) > > and I don't know how to retrieve that information after > SSH_CLIENT has been > > clobbered. > > What do you mean? The variable is still there, it's just not > exported. If > you want to export it, do so. How do I access it then ??? In my script I try to look at the content of $SSH_CLIENT and it is ALWAYS empty (if I use /bin/sh as the login shell, everything is fine). I may be missing a couple of things as I am not a shell guru... Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message