LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-28-2002, 12:57 AM   #1
Sonny
Newbie
 
Registered: Jan 2002
Location: Burnaby British Columbia
Distribution: Redhat 7.1
Posts: 25

Rep: Reputation: 15
kill command...


Hi Guys,

I'm having some trouble figure out what Linux is doing when I issue the kill command. When I type,

kill 'slave1'

I get the message- bash: kill: pico: no such pid

However, when I type,

/bin/kill 'slave1'

the process 'slave1' is in fact killed. Why is that? There is no alias for kill and the only kill program is /bin/kill.

Sonny.
 
Old 01-28-2002, 01:02 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Yep, that's strange I just tried it out the same effect, but to be honest I've never used kill command in such form, I preffer
kill -9 PID
 
Old 01-28-2002, 04:08 AM   #3
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
The only thing I could find that would explain that is the following line in the kill manual pages:

"Most modern shells have a builtin kill function."

I guess the builtin functions don't support a process name then. Making an alias for the kill command will prevent it from using the builtin one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about Kill command bjdea1 Linux - General 2 11-07-2005 11:28 AM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 08:18 AM
kill command question chunlee Linux - Newbie 5 10-18-2004 01:45 PM
The kill command tearinox Linux - Newbie 2 08-15-2003 05:40 PM
Kill a process by command ITJedi Programming 3 03-07-2003 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration