ssh + patch + $TMP

Cyrille Lefevre cyrille.lefevre-lists@laposte.net
Sat Mar 6 22:55:00 GMT 2010


Kurt Franke a écrit :
<snip>
> 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. 

Hi,

the attached script only fork 5 processes (ps, grep, mount, find and 
awk), and does not use any temporary files, so, it should not degrade 
ssh logins performance.
existing environment variables are not overwritten.

Regards,

Cyrille Lefevre
-- 
mailto:Cyrille.Lefevre-lists@laposte.net
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ssh-session-env.sh
URL: <http://cygwin.com/pipermail/cygwin/attachments/20100306/06a165b4/attachment.ksh>
-------------- next part --------------
--
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


More information about the Cygwin mailing list