views:

61

answers:

1

I want to read all the running process in linux server from my C#.net client ? Can you please show me the way or possibility for achieving this ?

We are in same domain.. I guess no firewall issue and but I cannot write or install anything on server.

(I am trying this to get hold of the process id running on linux box and when that process changes the process id .. i have to run some logic in my client app)

+3  A: 

You will need to do this via SSH. For C#, I'd take a look at SharpSSH. Run ps -e | grep and you should be able to parse the ID number quite easily.

As far as I know, process IDs only change when the process is restarted, but I am no authority on the matter.

Alex Hart