Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: timeout problem in ssh sessions



On 2008-02-19, 00:35, Bart Schaefer wrote:
> Is that *before* you changed from your original formulation to use my
> version with ps="$(ps -eo ...)" ?
No, after.

> Because:
> 
> schaefer<506> ps="$(ps -eo pid,ppid,cmd)"
> schaefer<507> print -l "PID: $$" "PPID: $PPID" ${(M)${(f)ps}:#*ps -eo*}
> PID: 16182
> PPID: 7139
> 16255 16254 ps -eo pid,ppid,cmd

Strange, here it's different:

 condor:~>ps="$(ps -eo pid,ppid,cmd)"                              
 condor:~>print -l "PID: $$" "PPID: $PPID" ${(M)${(f)ps}:#*ps -eo*}
 PID: 23435
 PPID: 23388
 30571 23435 ps -eo pid,ppid,cmd

 condor:~>echo $ZSH_VERSION
 4.3.5
 condor:~>uname -a
 Linux condor 2.6.23.1 #1 SMP PREEMPT Thu Nov 1 01:54:03 CET 2007 i686 GNU/Linux

Chau,
 Andy.

-- 
 It's easier to get forgiveness for being wrong
 than forgiveness for being right.



Messages sorted by: Reverse Date, Date, Thread, Author