Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

after running this command kill -9 <PID> for ./sc_serv. I am getting this output below:

-bash: kill: for: arguments must be process or job IDs
-bash: kill: ./sc_serv: arguments must be process or job IDs

If I run ps I can see the PID has been terminated or at-least is no longer listed. Killing the process is all I really need to do at this point but Im worried about the meaning of the output and would like to know what it means before I move on with my project...

I am still learning so if there is any other relevant info or explanations they would be greatly appreciated of course.

Thanks!

share|improve this question
    
What is for ./sc_serv supposed to mean? –  Daniel R Hicks Sep 10 '13 at 15:02
    
That is just the specific executable file I am running. Its a shoutcast server. –  BryanK Sep 10 '13 at 15:08
    
But what does it mean to kill??? To kill it's just two more processes to kill. –  Daniel R Hicks Sep 10 '13 at 17:26

1 Answer 1

up vote 1 down vote accepted

You can use killall $processname to terminate a process by name or kill $pid to terminate a process by PID.

kill -9 $pid for ./sc_serv terminated the process by PID but showed an error about the for ./sc_serv arguments:

arguments must be process or job IDs
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.