X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=BAYES_00,NUMERIC_HTTP_ADDR,SPF_HELO_PASS,URI_HEX X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Kurt Franke Subject: Re: ssh + patch + $TMP Date: Mon, 22 Feb 2010 20:37:49 +0000 (UTC) Lines: 52 Message-ID: References: <1266525566 DOT 7752 DOT 1360709921 AT webmail DOT messagingengine DOT com> <4B806ACA DOT 2030409 AT laposte DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Loom/3.14 (http://gmane.org/) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Cyrille Lefevre laposte.net> writes: > > > Kurt Franke a écrit : > > I added a script > > > > 0000000-ssh-session-env.sh > > > > to /etc/profile.d/ to fetch the SYSTEM environment and USER environment > > from the registry. > > Some Variables like PATH are preserved. > > > > The login performance via ssh is degraded in comparison without this script. > > do you use regtool or /proc/registry ? > > > If you are interested I can email it to you. > > > > Or is it possible to post it here (Size 4897 Bytes) ? > > Regards, > > Cyrille Lefevre I use /proc/registry and loop through the entries in the environment directories in the form name=`cat $name` All this is written to a .bat file with also added code to write a script out to be sourced to get the environment settings this long way around is used to automatically expand variables in registry keys which may exist in keys of type REG_EXPAND_SZ this is of course also a brake pad for the performance I think for interactive logon this is tolerable But for using it very often in a rsh manner a solution with good performance would be preferred. regards kf -- 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