| delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT 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 DOT lefevre-lists AT laposte DOT 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 AT cygwin DOT com |
| Subject: | Re: ssh + patch + $TMP |
| References: | <1266525566 DOT 7752 DOT 1360709921 AT webmail DOT messagingengine DOT com> <loom DOT 20100219T220113-236 AT post DOT gmane DOT org> <4B806ACA DOT 2030409 AT laposte DOT net> <loom DOT 20100222T212522-331 AT post DOT gmane DOT org> |
| In-Reply-To: | <loom.20100222T212522-331@post.gmane.org> |
| 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 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 |
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 DOT Lefevre-lists AT laposte DOT 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |