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

Re: timeout problem in ssh sessions



On Feb 18, 11:27am, Andy Spiegl wrote:
} Subject: Re: timeout problem in ssh sessions
}
} > } Is that ok / efficient?
} > 
} > There's no particular problem with it but I think it's unnecessary given
} > the way you're filtering the output later.  The "ps" command is a child
} > of the subshell $(...), not of the login shell, so it will match neither
} > the grep for $$ nor the grep for $PPID (nor for xsel, obviously).
} 
} Uhmm, no.  Here the ps process is a direct child of the login shell:

Is that *before* you changed from your original formulation to use my
version with ps="$(ps -eo ...)" ?

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



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