X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=AWL,BAYES_00,NUMERIC_HTTP_ADDR,RCVD_IN_DNSWL_LOW,SARE_FREE_WEBM_LAPOSTE,URI_HEX
X-Spam-Check-By: sourceware.org
Message-ID: <4B85E940.2010606@laposte.net>
Date: Thu, 25 Feb 2010 04:06:40 +0100
From: Cyrille Lefevre <cyrille.lefevre-lists@laposte.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: ssh + patch + $TMP
References: <1266525566.7752.1360709921@webmail.messagingengine.com> <loom.20100219T220113-236@post.gmane.org> <4B806ACA.2030409@laposte.net> <loom.20100222T212522-331@post.gmane.org>
In-Reply-To: <loom.20100222T212522-331@post.gmane.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable
X-me-spamlevel: not-spam
X-me-spamrating: 46.060608
X-me-spamcause:  OK, (30)(0000)gggruggvucftvghtrhhoucdtuddrvdeltddrgeeiucetggdotefuucfrrhhofhhilhgvmecuoehnohhnvgeqnecuuegrihhlohhuthemuceftddtneculhhoghhinhculddqvddtmdenlhhoghhinhculddqvddtmdenshgvthhtihhnghhsucdlqdeftddmnefiuhhilhhthicufihorhgushculddutddtmd
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com


Kurt Franke a =C3=A9crit :
> Cyrille Lefevre <cyrille.lefevre-lists <at> laposte.net> writes:
>=20
>>
>> Kurt Franke a =C3=A9crit :
>>> I added a script=20
>>>
>>>    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 sc=
ript.=20
>> 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) ?
>=20
> I use /proc/registry and loop through the entries in the environment dire=
ctories
> in the form=20
> name=3D`cat $name`

try name=3D$(< $name) or read -r name < $name

> All this is written to a .bat file with also added code to write a script=
 out=20
> to be sourced to get the environment settings
>=20
> this long way around is used to automatically expand variables in registr=
y keys
> which may exist in keys of type REG_EXPAND_SZ
> this is of course also a brake pad for the performance

in bash, you have ${var/search/replace} which is better than
echo $var | sed 's|search|replace|' or whatever.

> I think for interactive logon this is tolerable
> But for using it very often in a rsh manner a solution with good performa=
nce
> would be preferred.=20

may be you may post your code ?

Regards,

Cyrille Lefevre
--=20
mailto:Cyrille.Lefevre-lists@laposte.net



--
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

