[paramiko] pid of command executed on remote machine.

Robey Pointer robey at lag.net
Mon May 21 18:32:17 PDT 2007


On 21 May 2007, at 16:47, jd wrote:

> Thanks Robey.
>
> In the given example, it would get the pid of the sh
> on the remote machine, I am looking for pid of 'ls'
> command.

Check out "$!" -- I think that's what you want.  I don't want to get  
into a whole discussion of bash esoterica, but I think what you want  
should all be doable from within the shell. :)

robey




More information about the paramiko mailing list