Re: Keyboard captures

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: Keyboard captures
On Mon, 30 Aug 2004, Marshall Paul wrote:

> command. My real goal was to break down each element
> of this command string and understand it.
> ca::ctrlaltdel:/sbin/shutdown -t5 -h -a now I fully
> understand the shutdown command but do not understand
> the ca::ctrlaltdel: portion and could not find
> documentation on it. I can only assume out of my
> ignorance that ca captures keyboard strokes and :: if
> equal to ctrlaltdel executes what follows the :. If


The first "ca" is the unique inittab id. I assume you could just name it
anything else instead (one to four characters).

The :: (colon followed by colon) just means there is no "runlevel". It is
blank; it is empty.

The ctrlaltdel part (which is the action part) just means that init
receives the SIGINT signal. (I assume this is handled by the kernel: the
kernel recognized the keystroke and sends the SIGINT singal to init
(process id 1)).

> that is so what number represents ctrlaltdel and how
> is it derived? Can the the raw (HEX code)number be
> substituted for ctrlaltdel?


No.

See the inittab man page.

Then maybe look in kernel source to choose your CTRL-ALT-DELETE behaviour.

Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss