Unix/Linux Go Back    


Fedora is an operating system centered on the Linux open source kernel and is developed by the community-supported Fedora Project. Fedora is sponsored by Red Hat. Fedora contains software distributed under a free and open-source license. Fedora focuses on innovation, integrating and adopting new technologies and working closely with various Linux communities. The default desktop in Fedora is the GNOME desktop environment and the default user interface is the GNOME Shell. Other desktop environments include KDE Plasma, Xfce, LXDE, MATE and Cinnamon. Security is an important aspect of Fedora with one specific security feature, Security-Enhanced Linux, implementing a variety of software security policies, including mandatory access controls.

Understanding Killall command , wait option

Fedora


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 06-17-2016
MrRobot MrRobot is offline
Registered User
 
Join Date: Jun 2016
Last Activity: 31 March 2017, 5:41 AM EDT
Location: Johannesburg
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
Linux Understanding Killall command , wait option

Linux
Code:
killall -w

Hi
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
Sponsored Links
    #2  
Old Unix and Linux 06-17-2016
Yoda's Unix or Linux Image
Yoda Yoda is offline Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 19 April 2017, 12:51 PM EDT
Location: Galactic Empire
Posts: 3,539
Thanks: 251
Thanked 1,288 Times in 1,210 Posts
From man page

Code:
-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.

The Following User Says Thank You to Yoda For This Useful Post:
MrRobot (06-21-2016)
Sponsored Links
    #3  
Old Unix and Linux 06-17-2016
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 24 April 2017, 5:00 PM EDT
Location: Saskatchewan
Posts: 22,073
Thanks: 1,070
Thanked 4,149 Times in 3,840 Posts
Also, keep in mind that killall has a slightly different and far more literal meaning on other UNIX.
The Following User Says Thank You to Corona688 For This Useful Post:
MrRobot (06-21-2016)
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
In Shell Script Does Second Command Wait For First Command To Complete angshuman Shell Programming and Scripting 3 07-24-2013 07:28 AM
trouble understanding file option and command line arguments heywoodfloyd Homework & Coursework Questions 1 09-26-2011 08:03 AM
Verifying killall command usage proactiveaditya Shell Programming and Scripting 1 01-06-2010 03:14 PM
wait command - cat it wait for not-chile process? alex_5161 Shell Programming and Scripting 2 06-26-2008 06:14 PM
using killall command chanfle Shell Programming and Scripting 2 05-18-2006 11:09 PM



All times are GMT -4. The time now is 10:45 PM.