This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ssh + patch + $TMP

Kurt Franke a Ãcrit :
Cyrille Lefevre <cyrille.lefevre-lists <at>> writes:

Kurt Franke a Ãcrit :
I added a script

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

I use /proc/registry and loop through the entries in the environment directories
in the form name=`cat $name`

try name=$(< $name) or read -r name < $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

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 performance
would be preferred.

may be you may post your code ?


Cyrille Lefevre

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]