Re: ssh + patch + $TMP

2010-03-08 Thread Cyrille Lefevre
Kurt Franke a écrit : -Ursprüngliche Nachricht- Von: Cyrille Lefevre Gesendet: 06.03.2010 23:30:57 An: cygwin@cygwin.com,kurt-fra...@web.de Betreff: Re: ssh + patch + $TMP the attached script only fork 5 processes (ps, grep, mount, find and awk), and does not use any temporary files

Re: ssh + patch + $TMP

2010-03-08 Thread Kurt Franke
-Ursprüngliche Nachricht- Von: Cyrille Lefevre Gesendet: 06.03.2010 23:30:57 An: cygwin@cygwin.com,kurt-fra...@web.de Betreff: Re: ssh + patch + $TMP >Hi, > >the attached script only fork 5 processes (ps, grep, mount, find and >awk), and does not use any temporary files, s

Re: ssh + patch + $TMP

2010-03-06 Thread Cyrille Lefevre
Kurt Franke a écrit : 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 au

Re: ssh + patch + $TMP

2010-02-27 Thread Kurt Franke
Cyrille Lefevre laposte.net> writes: ... deleted ... > > may be you may post your code ? > > Regards, > > Cyrille Lefevre Cyrille, the script is appended in uuencoded form (due to some lines longer 80 characters). regards kf ===

Re: ssh + patch + $TMP

2010-02-24 Thread Cyrille Lefevre
Kurt Franke a écrit : Cyrille Lefevre laposte.net> writes: Kurt Franke a écrit : I added a script 000-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 ss

Re: ssh + patch + $TMP

2010-02-22 Thread Christopher Faylor
On Mon, Feb 22, 2010 at 10:15:21AM +0100, Corinna Vinschen wrote: >On Feb 22 01:53, Christopher Faylor wrote: >> On Sun, Feb 21, 2010 at 05:33:56PM -0800, Karl M wrote: >> > >> >> Date: Sat, 20 Feb 2010 21:23:22 -0500 >> >> From: cgf >> >> Subj

Re: ssh + patch + $TMP

2010-02-22 Thread Kurt Franke
Cyrille Lefevre laposte.net> writes: > > > Kurt Franke a écrit : > > I added a script > > > >000-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 pe

Re: ssh + patch + $TMP

2010-02-22 Thread Corinna Vinschen
On Feb 22 01:53, Christopher Faylor wrote: > On Sun, Feb 21, 2010 at 05:33:56PM -0800, Karl M wrote: > > > >> Date: Sat, 20 Feb 2010 21:23:22 -0500 > >> From: cgf > >> Subject: Re: ssh + patch + $TMP > >> > >> On Sun, Feb 21, 2010 at 12:0

Re: ssh + patch + $TMP

2010-02-21 Thread Christopher Faylor
On Sun, Feb 21, 2010 at 05:33:56PM -0800, Karl M wrote: > >> Date: Sat, 20 Feb 2010 21:23:22 -0500 >> From: cgf >> Subject: Re: ssh + patch + $TMP >> >> On Sun, Feb 21, 2010 at 12:04:19AM +0100, Cyrille Lefevre wrote: >> >> I would really bet that th

RE: ssh + patch + $TMP

2010-02-21 Thread Karl M
> Date: Sat, 20 Feb 2010 21:23:22 -0500 > From: cgf > Subject: Re: ssh + patch + $TMP > > On Sun, Feb 21, 2010 at 12:04:19AM +0100, Cyrille Lefevre wrote: > > I would really bet that there aren't many programs out there which rely > on those environment variables

Re: ssh + patch + $TMP

2010-02-20 Thread Christopher Faylor
On Sun, Feb 21, 2010 at 12:04:19AM +0100, Cyrille Lefevre wrote: > >Larry Hall (Cygwin) a ??crit : >> >> On 02/19/2010 07:12 AM, Corinna Vinschen wrote: >>> Well, here's the revised list of what I think should be kept: >>> >>>ALLUSERSPROFILE >>>COMPUTERNAME >>>COMSPEC >>>CYGWIN >>>

Re: ssh + patch + $TMP

2010-02-20 Thread Cyrille Lefevre
Kurt Franke a écrit : I added a script 000-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 r

Re: ssh + patch + $TMP

2010-02-20 Thread Cyrille Lefevre
Larry Hall (Cygwin) a écrit : On 02/19/2010 07:12 AM, Corinna Vinschen wrote: Well, here's the revised list of what I think should be kept: ALLUSERSPROFILE COMPUTERNAME COMSPEC CYGWIN OS PATH PATHEXT SYSTEMDRIVE SYSTEMROOT WINDIR Can we agree on that? OK by me

Re: ssh + patch + $TMP

2010-02-19 Thread Kurt Franke
Charles Wilson cwilson.fastmail.fm> writes: > > I ran across an interesting "feature" of remote access today. I was > ssh'ed in to my cygwin computer, under my normal windows/cygwin account > name, and tried to run 'patch': > > $ patch -p1 -R --dry-run < ../some-patch.patch > patch: Can't

Re: ssh + patch + $TMP

2010-02-19 Thread Larry Hall (Cygwin)
On 02/19/2010 07:12 AM, Corinna Vinschen wrote: Well, here's the revised list of what I think should be kept: ALLUSERSPROFILE COMPUTERNAME COMSPEC CYGWIN OS PATH PATHEXT SYSTEMDRIVE SYSTEMROOT WINDIR Can we agree on that? OK by me. -- Larry Hall

Re: ssh + patch + $TMP

2010-02-19 Thread Christopher Faylor
On Fri, Feb 19, 2010 at 01:12:53PM +0100, Corinna Vinschen wrote: >On Feb 18 16:25, Christopher Faylor wrote: >> On Thu, Feb 18, 2010 at 09:52:02PM +0100, Corinna Vinschen wrote: >> >In contrast to other systems, sshd for Cygwin preserves a couple of >> >environment variables from the parent sshd p

Re: ssh + patch + $TMP

2010-02-19 Thread Corinna Vinschen
On Feb 18 16:25, Christopher Faylor wrote: > On Thu, Feb 18, 2010 at 09:52:02PM +0100, Corinna Vinschen wrote: > >In contrast to other systems, sshd for Cygwin preserves a couple of > >environment variables from the parent sshd process running under the > >cyg_server account. The list of preserved

Re: ssh + patch + $TMP

2010-02-18 Thread Christopher Faylor
On Thu, Feb 18, 2010 at 09:52:02PM +0100, Corinna Vinschen wrote: >On Feb 18 15:39, Charles Wilson wrote: >> I ran across an interesting "feature" of remote access today. I was >> ssh'ed in to my cygwin computer, under my normal windows/cygwin account >> name, and tried to run 'patch': >> >> $ pat

Re: ssh + patch + $TMP

2010-02-18 Thread Larry Hall (Cygwin)
On 02/18/2010 03:52 PM, Corinna Vinschen wrote: On Feb 18 15:39, Charles Wilson wrote: I ran across an interesting "feature" of remote access today. I was ssh'ed in to my cygwin computer, under my normal windows/cygwin account name, and tried to run 'patch': $ patch -p1 -R --dry-run< ../some-p

Re: ssh + patch + $TMP

2010-02-18 Thread Corinna Vinschen
On Feb 18 15:39, Charles Wilson wrote: > I ran across an interesting "feature" of remote access today. I was > ssh'ed in to my cygwin computer, under my normal windows/cygwin account > name, and tried to run 'patch': > > $ patch -p1 -R --dry-run < ../some-patch.patch > patch: Can't create fil

ssh + patch + $TMP

2010-02-18 Thread Charles Wilson
I ran across an interesting "feature" of remote access today. I was ssh'ed in to my cygwin computer, under my normal windows/cygwin account name, and tried to run 'patch': $ patch -p1 -R --dry-run < ../some-patch.patch patch: Can't create file /c/Users/CYG_SE~1/AppData/Local/Temp/poFOD7WH : N