08-13-2008
By the way, with modern versions of unix you have no way to even try to signal process 0. The kill system call uses a process of -1 and 0 to mean two collections of processes. This is documented of the kill(2) man page and it's required by posix. This change occurred roughly about the same time as versions of unix had a process 0. I'm not sure if any version of unix ever had both a process 0 and a way to signal it.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have the below script to kill the user who idle for 180 minutes, it work fine , if I want to have one more checking - if the process is in "Runing" mode not in "Sleep" mode ( ps -aux |grep pid ) , then the process will not be killed ( that mean only kill the "Sleep" mode process ) could suggest... (3 Replies)
Discussion started by: ust
3 Replies
2. AIX
Hello list,
Have a problem that's highlighting gaps in my knowledge; can you assist?
We have a script that's tacked onto our trading application which allows branch managers etc. to kill off the sessions of other users at their branch. A menu option in the application spawns a shell running... (8 Replies)
Discussion started by: alexop
8 Replies
3. Solaris
how do i kill a user session (10 Replies)
Discussion started by: fsmadi
10 Replies
4. Shell Programming and Scripting
Hi,
Is there a way to kill all processes belonging to one user in one shot?
Thanks,
Narayan (4 Replies)
Discussion started by: narayanv
4 Replies
5. Shell Programming and Scripting
Hi there, i've been searching all over and i thought i had understood the way i should go to kill all the processes related to a user. But i'm getting more confused then i was.
By lunch time i have to make a database backup, and for that all the users shoul logout. The problem is that many users... (4 Replies)
Discussion started by: vascobrito
4 Replies
6. Shell Programming and Scripting
Hi Here is my problem:
1)I am login to unix server through my login id and do SU - xxx
2) Start the script which is running in background
I want that other user which login to there id and do SU - yyy(Different user) kill that
script.
Could you please help me in this. (9 Replies)
Discussion started by: mr_harish80
9 Replies
7. Shell Programming and Scripting
Folks,
I have written one script for following condition by referring some of online post in this forum. Please correct it if I'm missing something in it. (OS: AIX 5.3)
List the idle user. (I used whoidle command to list first 15 user and get username, idle time, pid and login time).... (4 Replies)
Discussion started by: sumit30
4 Replies
8. Shell Programming and Scripting
Hello..
I have many sleepy users on my Solaris box and need to kill them if they are idle for more than 45 minutes for example...I know who -u gives and the idle time but unable to make a awk line to get the condition perfect. Please help...:wall: (9 Replies)
Discussion started by: wimaxpole
9 Replies
9. AIX
Hi!
We are using AIX 5.3.
Can anyone please guide me to find out all the running processes for a specific user, say ' admin' and also kill them by force.
Thanks!
atech (9 Replies)
Discussion started by: atechcorp
9 Replies
10. Shell Programming and Scripting
Hi folks,
I want to kill all process of oracle user and won't kill shell, should i try this? Please confirm.
1st way
pgrep -u oracle | sudo xargs kill -9
2nd way
killall -u oracle (2 Replies)
Discussion started by: learnbash
2 Replies