File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Linux / UNIX and the fly likes how to know the killed process? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "how to know the killed process?" Watch "how to know the killed process?" New topic

how to know the killed process?

raj esh

Joined: Apr 03, 2010
Posts: 10

we are using userid in common (entire team).

when i login and when i give ps command. i have list of process executing are displayed.i have to kill my processid.mistakenly i killed other's processId. after sometime i ran the ps command again,then i realized that my process is running and mistakenly i killed other processid.

is there any way to know which process i killed ???
so that i can restart that particular process

please help me someone in this group.
Peter Johnson

Joined: May 14, 2008
Posts: 5852

Could I ask why you do not have a separate userid for each user? If everyone is using the same userid it is extremely difficult to determine who is running which process.

JBoss In Action
Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3921

"banti banthi", please check your private messages regarding an important administrative matter.

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

One of the reasons for even having userids is so things like this can't happen.

Don't tell me. The budget doesn't allow for paying a proper system administrator.

An IDE is no substitute for an Intelligent Developer.
anish patil

Joined: May 02, 2010
Posts: 10
assuming you have administrative access
check out /var/log/messages
I agree. Here's the link:
subject: how to know the killed process?
It's not a secret anymore!