- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- User process in the system
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 09:59 PM
01-30-2005 09:59 PM
attach is the /etc/profile in my system , we have limit each user can only have one login in the system . When the user login , if the system found the user have a dead process in the system , the system will confirm the user to kill the previous login and try to kill it ( this is the additational function of the profile ) , but I have a problem now , the system can't kill the previous dead process now , I think it is because the system only try to kill the PID , but not the PPID ,so it will pop the "not the process owner" when trying to kill the process , could suggest how can I change the script so that it will kill the PPID ? or is there any reason why the dead can't be killed ? thx in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2005 10:29 PM
01-30-2005 10:29 PM
Re: User process in the system
Why you don't try to kill just the user processes?
"ps -fu
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 05:34 PM
01-31-2005 05:34 PM
Re: User process in the system
i tried ps -fu , but it only find the PID of the grep process (eg. 6795 in the below example) , it seems not find the PPID , could suggest how to kill the PPID ? thx again.
root 6795 0.0 0.0 1712 580 pts/19 S 14:34 0:00 grep Bohmer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 07:44 PM
01-31-2005 07:44 PM
Re: User process in the system
I have changed the script (ps -ef | grep -v grep | grep $atty | ) but it still can't kill the process , it seems still can't kill the PPID , could suggest what can I do ? thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 07:49 PM
01-31-2005 07:49 PM
Re: User process in the system
Did you tried "kill -9 PID" (not PPID)? To use "kill -9", you have to be sure those processes are really not doing anything, since they are just killed...
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2005 10:43 PM
01-31-2005 10:43 PM
Re: User process in the system
yes, kill -9 can kill the process , but I am not prefer let the uesr use the -9 as there are some strange problems .
Except this method , can suggest what can I do ? thx.