delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=5.0 required=5.0 tests=BAYES_40,BOTNET,RCVD_IN_DNSWL_NONE |
X-Spam-Check-By: | sourceware.org |
MIME-version: | 1.0 |
Message-id: | <4BDE1B8B.5070306@cygwin.com> |
Date: | Sun, 02 May 2010 20:40:43 -0400 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: 1.7.5: sshd environment variables |
References: | <201005010750 DOT 10907 DOT plr DOT vincent AT gmail DOT com> <4BDCCCE7 DOT 7090002 AT cygwin DOT com> <201005020833 DOT 59667 DOT plr DOT vincent AT gmail DOT com> |
In-reply-to: | <201005020833.59667.plr.vincent@gmail.com> |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
On 5/2/2010 2:33 AM, Vincent Pelletier wrote: > Le dimanche 02 mai 2010 02:52:55, Larry Hall (Cygwin) a écrit : >> You can add whatever variables you want and need to a script you can run >> as part of the login or just after, depending on your needs. > > So my question becomes: > Is it possible to get windows environment vars in a shell obtained via ssh > (to avoid duplicating their definition in my .bashrc) ? Or is there a way to > extend the set of vars sshd lets through to shell (I'm ok with having to name > the variables I need, as long as I don't have to set their value manually) ? You can get the environment variables using 'env' (or 'set' in 'cmd.exe') prior to invoking 'ssh'. You can then trim down the list to those that you want. Putting those in a file that you can invoke shouldn't be hard. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 216 Dalton Rd. (508) 893-9889 - FAX Holliston, MA 01746 _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |