- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: kill process
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
Discussions
Discussions
Forums
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
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
тАО11-26-2007 02:53 PM
тАО11-26-2007 02:53 PM
kill process
58741 <-- the user login process
82587
58412
47521
87934
25462
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 03:05 PM
тАО11-26-2007 03:05 PM
Re: kill process
If the former, you may need to use nohup to prevent the killing process from dying.
If the latter, you need to filter out that specific process.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 03:07 PM
тАО11-26-2007 03:07 PM
Re: kill process
Can you post the script , how u r finding that these are the dead process????
if u are doin some grep...
why u using two scripts???
ps -ef|grep <>|awk ....|xargs kill
may help!!!1
More infomation is needed.
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 03:23 PM
тАО11-26-2007 03:23 PM
Re: kill process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 08:37 PM
тАО11-26-2007 08:37 PM
Re: kill process
I would like to clearly state what I want , I use the script in linux , in linux , there is a path /proc , that have all user process (as below) , I have a script to kill this process by user themself , but when the user kill its process , it may be kill its current process before kill other process , then the user have logged out but other process is still in the system , so can advise how to force the user can kill all process at the same time ? thx
cd /proc
ll |grep test_user
dr-xr-xr-x 3 test_user EDP 0 Nov 27 17:20 10437
dr-xr-xr-x 3 test_user EDP 0 Nov 27 17:20 10587
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-26-2007 09:13 PM
тАО11-26-2007 09:13 PM
Re: kill process
Since this is linux specific, you should have created a thread in that forum.
>it may be kill its current process before kill other process but other process is still in the system, so can advise how to force the user can kill all process at the same time?
As I mentioned the first time, use nohup:
$ nohup your_script > /dev/null 2>&1 &
(If you don't redirect the output, it will be placed in nohup.out.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2007 08:30 PM
тАО11-27-2007 08:30 PM
Re: kill process
If you are that user, the 'ps -u'.
If you aren't that user, then 'ps -U