11-22-07 06:23 PM
On Nov 22, 8:33 am, sandy <rayapudisand...@gmail.com> wrote:
> Hi,
>
> I have run a process on remote machine with system() call using "ssh
> abc@host './process'".
> Process is up and running on remote machine. Is there any way i can
> find PID of a process running in remote machine. I couldnt do that
> with system("ps -aef | grep process | awk....."), since we can't get
> output of a command run using system() call. Can any one help?
>
> Thnx in advance,
> Sandeep
Untried, but:
popen("ssh abc@host 'pgrep process'")
?
[ Post a follow-up to this message ]
|