Understanding Killall command , wait option

Login or Register to Reply

Thread Tools Search this Thread
# 1  
Linux Understanding Killall command , wait option

killall -w

i need to understand how the -w option works in terms of processes.
If this command is issued does it literally terminate all running processes ..wait for them all to be terminated and then return to standard output ?

Thanks in advance
# 2  
From man page
-w, --wait
       Wait  for  all  killed  processes to die. killall checks once per second if any of the killed processes still exist and only returns if none are
       left.  Note that killall may wait forever if the signal was ignored, had no effect, or if the process stays in zombie state.

This User Gave Thanks to Yoda For This Post:
Login or Register to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
In Shell Script Does Second Command Wait For First Command To Complete
Hi All, I have a question related to Shell scripting. In my shell script, I have following two commands in sequence: sed 's/^/grep "^120" /g' $ORIGCHARGEDAMTLIST|sed "s;$;| cut -f$FIELD_NO1 -d '|' | awk '{ sum+=\$1} END {printf (\"%0.2f\\\n\", sum/100)}' >$TEMPFILE mv $TEMPFILE $ORIGFILE...... Shell Programming and Scripting
Shell Programming and Scripting
trouble understanding file option and command line arguments
Hi, I am creating a program with the C language that simulates the WC command in Unix. My program needs to count lines, bytes and words. I have not added the code to count bytes and words yet. I am having trouble understanding what the file option/flag '-' does. I can not visualize how it moves...... Homework & Coursework Questions
Homework & Coursework Questions
Verifying killall command usage
killall -KILL rdiff-backup Is it a valid command coz i couldn't find a -KILL option for killall in the man page.... Shell Programming and Scripting
Shell Programming and Scripting
wait command - cat it wait for not-chile process?
Did not use 'wait' yet. How I understand by now the wait works only for child processes, started background. Is there any other way to watch completion of any, not related process (at least, a process, owned by the same user?) I need to start a background process, witch will be waiting...... Shell Programming and Scripting
Shell Programming and Scripting
using killall command
hi all... I investigate if exists some script so that when unix run an application (in this case backup's), so after of that does run killall command to all users connected, or if it is possible to be put in crontab... I wait for and they help me so I do not have much knowledge in programming.......... Shell Programming and Scripting
Shell Programming and Scripting