Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14th January 2009, 08:26 PM
JimTrail Offline
Registered User
 
Join Date: Dec 2008
Posts: 6
How do I apply "killall" directive at the shell command line

Hello;

I have got the Fedora 7 operating system on a virtual dedicated hosting. I am learning to use the puTTy program.

Someone in this forum was kind enough to help me start the SHOUTcast server. Here's the thread:
http://forums.fedoraforum.org/showthread.php?t=208544

Now I am trying to stop the SHOUTcast sc_serv server program. Someone in the SHOUTcast forum told me to use the "killall" command in order to stop the child processes.

I have typed the following commands at the shell using puTTy:

[user@ip-xx-xx-xx-xx folder]$ killall
[user@ip-xx-xx-xx-xx folder]$ killall sc_serv
[user@ip-xx-xx-xx-xx folder]$ sc_serv killall

None of the commands work.

I have looked over the "Info" file in the puTTy program. There is so much there I don't know where to start looking.

I am a janitor supply salesman. I don't have a whole lot of technical intuition.

Can somebody help me figure out how to get the killall function to work? I would appreciate any help.

Thanks.
__________________
:)
Reply With Quote
  #2  
Old 14th January 2009, 08:52 PM
Hlingler's Avatar
Hlingler Offline
Administrator
 
Join Date: Sep 2006
Location: Connellsville, PA, USA
Posts: 11,289
Read: man killall

The short version: killall will (as it's name implies) terminate, with extreme prejudice, all instances of the named program that are currently running/open, and for which I have permission to control. For example: if I have six xterm terminals open, and open another xterm and command:
killall xterm

Guess what happens? If, however, one of those terminals is logged on as root user, the killall will be denied/ignored, unless killall is invoked by root user.

The argument is the program name, without any options/flags etc.

V

P.S. In your case, I'm guessing:
killall shoutcast
Reply With Quote
  #3  
Old 14th January 2009, 09:10 PM
JimTrail Offline
Registered User
 
Join Date: Dec 2008
Posts: 6
Hlingler;

Thanks for responding to my question. I just got it killed. (fortunately I can un-kill it)

You're right. It works like an ax.

Thanks again.
__________________
:)
Reply With Quote
  #4  
Old 14th January 2009, 09:21 PM
PabloTwo's Avatar
PabloTwo Online
"Registered User" T-Shirt Winner
 
Join Date: Mar 2007
Location: Seville, FL
Posts: 5,126
I don't know the first thing about SHOUTcast, but as I understand your post, you are using puTTy to ssh into a Fedora 7 machine that is running the SHOUTcast server, and you want to shut the Shoutcast function down. Assuming that:

[user@ip-xx-xx-xx-xx folder]$

is the prompt in puTTy once you have logged into that F7 machine, it may be that you need root privilges on that remote machine in order to shut the SHOUTcast service down, or just KILL it. Your example shows a normal user prompt "$". You should be able to determine the 'owner', and other info such as the PID, of the SHOUTcast service running by using the command:

ps aux | grep sc_serv

If that returns an entry (or several) then the first item at the left is the owner of the process that is running and the number after that is the PID (Process ID). If the owner is 'root', then you need to become root on the remote machine to shut that process/app down. And knowing the PID, you can use that instead of the app/process name. You can also discover the PID by using the command:

pidof sc_serv

This assumes that "sc_serv" is the correct process name you're trying to kill or query.

edit: Late to the party, as usual, and from the OP's response to Vince's post, looks like misunderstood his intentions.

Last edited by PabloTwo; 14th January 2009 at 09:25 PM.
Reply With Quote
  #5  
Old 14th January 2009, 09:51 PM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
I usually use kill option with dash 9. It takes fime to follow the PID trail.
Code:
kill -9 pid
Look at:
Code:
man kill
man killall
Reply With Quote
Reply

Tags
apply, command, directive, killall, line, shell

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to print a "test page" from command line jusbug Using Fedora 5 1st July 2009 10:42 PM
Can "stock" Fedora copy partitions from command line? joe.pelayo Using Fedora 10 31st May 2009 04:57 AM
error with the code line fopen("/proc/uptime", "r") A_n_H Programming & Packaging 4 21st May 2009 04:20 PM
How to apply "redhat updatepackage" to "fedora 9" Savoias21 Using Fedora 4 8th September 2008 03:27 PM
Avidemux2 from the command line: How to reproduce the "auto" settings? SpectrumDT Using Fedora 2 23rd June 2008 10:21 PM


Current GMT-time: 12:39 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat