LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kill command... (https://www.linuxquestions.org/questions/linux-newbie-8/kill-command-12856/)

Sonny 01-27-2002 11:57 PM

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.

neo77777 01-28-2002 12:02 AM

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

Mik 01-28-2002 03:08 AM

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.


All times are GMT -5. The time now is 10:34 PM.