Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: timeout problem in ssh sessions
- X-seq: zsh-users 12625
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: timeout problem in ssh sessions
- Date: Tue, 19 Feb 2008 00:35:57 -0800
- In-reply-to: <20080218102729.GA21288@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080213134200.GB31852@xxxxxxxxx> <200802131349.m1DDnXRF004831@xxxxxxxxxxxxxx> <27b8b8a0802130621x47568c7fo304848d02a1c6e76@xxxxxxxxxxxxxx> <20080213143803.GI619@xxxxxxxxxxxxxxxxxxx> <20080214125415.GC31852@xxxxxxxxx> <20080214180818.GO619@xxxxxxxxxxxxxxxxxxx> <20080215103220.GF31852@xxxxxxxxx> <080215123047.ZM29728@xxxxxxxxxxxxxxxxxxxxxx> <20080215221834.GA23684@xxxxxxxxx> <080215192616.ZM30010@xxxxxxxxxxxxxxxxxxxxxx> <20080218102729.GA21288@xxxxxxxxx>
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