Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to monitor a process from a diff. userid

Status
Not open for further replies.

vsrraman

Programmer
Nov 28, 2003
2
US
Hi,

My problem is, consider 2 users A and B belonging to the same group. I run a process under User A. Am trying to monitor it by logging in from as User B.How do i do this ?

i tried kill(pid,0) in my C program which is my monitoring program run from user B.This doesnot work since kill could be issued only by the owner of the pid.here the owner of that pid is A,since i started it from A.

Could you just tell me if there is any other means of monitoring a process from an other user id who is not the owner of the process that is currently running.

Thanx in advance,
-VSR
 
One way is ofcourse that you can login as root.

Well I think sticky bit can also help.
 
Depending on what you mean by "monitor," if you're on a Linux system, you can get to some of its information via the /proc filesystem. You still can't kill it, though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top