Girish Venkatachalam | 18 Jul 2012 08:55
Picon

kill

kill is a word we normally use to mean murder. ;)

In the UNIX world we often use it to destroy wayward processes.

We also use it to send signals like SIGINFO.

$ pkill -INFO dd

$ kill -l
 1    HUP Hangup                        17   STOP Suspended (signal)
 2    INT Interrupt                     18   TSTP Suspended
 3   QUIT Quit                          19   CONT Continued
 4    ILL Illegal instruction           20   CHLD Child exited
 5   TRAP Trace/BPT trap                21   TTIN Stopped (tty input)
 6   ABRT Abort trap                    22   TTOU Stopped (tty output)
 7    EMT EMT trap                      23     IO I/O possible
 8    FPE Floating point exception      24   XCPU Cputime limit exceeded
 9   KILL Killed                        25   XFSZ Filesize limit exceeded
10    BUS Bus error                     26 VTALRM Virtual timer expired
11   SEGV Segmentation fault            27   PROF Profiling timer expired
12    SYS Bad system call               28  WINCH Window size changes
13   PIPE Broken pipe                   29   INFO Information request
14   ALRM Alarm clock                   30   USR1 User defined signal 1
15   TERM Terminated                    31   USR2 User defined signal 2
16    URG Urgent I/O condition          32    THR Thread AST
$

The signals are reported by the shell but they are not in the shell.

The signals are defined by kernel, libc and so on.
(Continue reading)

Noorul Islam K M | 18 Jul 2012 09:20

Re: kill

Girish Venkatachalam <girishvenkatachalam@...> writes:

> kill is a word we normally use to mean murder. ;)
>
> In the UNIX world we often use it to destroy wayward processes.
>
> We also use it to send signals like SIGINFO.
>
> $ pkill -INFO dd
>
> $ kill -l
>  1    HUP Hangup                        17   STOP Suspended (signal)
>  2    INT Interrupt                     18   TSTP Suspended
>  3   QUIT Quit                          19   CONT Continued

Which shell are you using? Bash completion is not displaying those
numbers.

Thanks and Regards
Noorul
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Balachandran Sivakumar | 18 Jul 2012 11:25
Picon

Re: kill

Hi,

On Wed, Jul 18, 2012 at 12:50 PM, Noorul Islam K M <noorul@...> wrote:
>
> Which shell are you using? Bash completion is not displaying those
> numbers.
>

       Bash shows it for me. kill -l  in bash 4.1.x shows the same
output. But, when you say bash completion, were you trying kill <TAB>
<TAB> ? I don't think that shows it up. thanks

--

-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.
                                                             - Swami Vivekananda

Mail: benignbala@...
Blog: http://benignbala.wordpress.com/
_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Noorul Islam K M | 18 Jul 2012 11:44

Re: kill

Balachandran Sivakumar <benignbala@...> writes:

> Hi,
>
> On Wed, Jul 18, 2012 at 12:50 PM, Noorul Islam K M <noorul@...> wrote:
>>
>> Which shell are you using? Bash completion is not displaying those
>> numbers.
>>
>
>        Bash shows it for me. kill -l  in bash 4.1.x shows the same
> output. But, when you say bash completion, were you trying kill <TAB>
> <TAB> ? I don't think that shows it up. thanks

$ --> cat /etc/debian_version 
6.0.4

 noman in ~
$ --> bash --version
GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

 noman in ~
$ --> kill -<tab>
-ABRT      -CONT      -INT       -KILL      -QUIT      -RTMAX-11  -RTMAX-2   -RTMAX-6   -RTMIN     -RTMIN+12  -RTMIN+2   -RTMIN+6   -SEGV      -TERM     
-TTOU      -VTALRM    
(Continue reading)

kenneth gonsalves | 18 Jul 2012 11:57

Re: kill

On Wed, 2012-07-18 at 15:14 +0530, Noorul Islam K M wrote:
> May be this one is customized by Debian or the OP might be using some
> *nix variant. 

I heard some rumours that he uses BSD ;-)
--

-- 
regards
Kenneth Gonsalves

_______________________________________________
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Balachandran Sivakumar | 18 Jul 2012 11:58
Picon

Re: kill

Hi,

On Wed, Jul 18, 2012 at 3:14 PM, Noorul Islam K M <noorul@...> wrote:
> Balachandran Sivakumar <benignbala@...> writes:
>
>> Hi,
>>
>>        Bash shows it for me. kill -l  in bash 4.1.x shows the same
>> output. But, when you say bash completion, were you trying kill <TAB>
>> <TAB> ? I don't think that shows it up. thanks
>
>
>  noman in ~
> $ --> kill -l<tab>
>

         What do you get, when you do kill -l <enter> ? I too am on
Debian Sqeeze(6.0.3) and I get the list of signals available. IIRC, -l
just lists the signals and doesn't take any parameters/arguments. So
tab completion probably doesn't work. Thanks

--

-- 
Thank you
Balachandran Sivakumar

Arise Awake and stop not till the goal is reached.
                                                             - Swami Vivekananda

Mail: benignbala@...
Blog: http://benignbala.wordpress.com/
(Continue reading)


Gmane