This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ssh + patch + $TMP
Cyrille Lefevre <cyrille.lefevre-lists <at> 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