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   -   Original Discussion by MrRobot
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   -   Original Discussion by MrRobot
Yoda's Unix or Linux Image
Yoda Yoda is offline Forum Advisor  
Jedi Master
 
Join Date: Jan 2012
Last Activity: 19 November 2017, 11:06 AM EST
Location: Galactic Empire
Posts: 3,601
Thanks: 253
Thanked 1,315 Times in 1,232 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   -   Original Discussion by MrRobot
Corona688 Corona688 is offline Forum Staff  
Mead Rotor
 
Join Date: Aug 2005
Last Activity: 17 November 2017, 9:25 PM EST
Location: Saskatchewan
Posts: 22,512
Thanks: 1,151
Thanked 4,273 Times in 3,946 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 08:28 AM
trouble understanding file option and command line arguments heywoodfloyd Homework & Coursework Questions 1 09-26-2011 09:03 AM
Verifying killall command usage proactiveaditya Shell Programming and Scripting 1 01-06-2010 04:14 PM
wait command - cat it wait for not-chile process? alex_5161 Shell Programming and Scripting 2 06-26-2008 07:14 PM
using killall command chanfle Shell Programming and Scripting 2 05-19-2006 12:09 AM



All times are GMT -4. The time now is 12:13 PM.