Re: Expect: Getting PID at both ends of ssh
- From: "Mumia W. (NOSPAM)" <paduille.4060.mumia.w+nospam@xxxxxxxxxxxxx>
- Date: Mon, 22 Jan 2007 18:26:40 -0600
On 01/22/2007 02:08 PM, Ishmael wrote:
This may be more of a Unix question, but in any case, here goes. I'm
using Expect as a wrapper for 'ssh' (don't worry, I have RSA keys
enabled, so no password issues). Now, Expect provides a nice interface
for getting the PID of it's own spawned process (locally), but I would
like to get the PID at the other end of the ssh (remotely). Ideally, I
would like to get something of the form:
Local PID: 1234 (expect spawned ssh) ---> Remote PID: 5678 (shell)
How do you trace through from one end of ssh to the other? Thanks for
your help!
I don't have a lot of experience with Expect/ssh, but I think it should be as simple as issuing "echo $$" to ssh and capturing the result.
--
Windows Vista and your freedom in conflict:
http://www.badvista.org/
.
- Follow-Ups:
- Re: Expect: Getting PID at both ends of ssh
- From: Ishmael
- Re: Expect: Getting PID at both ends of ssh
- References:
- Expect: Getting PID at both ends of ssh
- From: Ishmael
- Expect: Getting PID at both ends of ssh
- Prev by Date: Expect: Getting PID at both ends of ssh
- Next by Date: Using Win32::OLE on 64 Bit Windows
- Previous by thread: Expect: Getting PID at both ends of ssh
- Next by thread: Re: Expect: Getting PID at both ends of ssh
- Index(es):
Relevant Pages
|
|