source: trunk/minix/man/man8/intr.8@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.7 KB
Line 
1.TH INTR 8
2.SH NAME
3intr \- run a command with interrupts enabled
4.SH SYNOPSIS
5.B intr
6.RB [ \-d ]
7.RB [ \-t
8.IR seconds ]
9.I command
10.RI [arg "...]"
11.SH DESCRIPTION
12.B Intr
13executes a command with keyboard interrupts enabled, and standard input,
14output and error redirected to the terminal or the console. It may also
15be used for the opposite: to detach a process from the terminal.
16.PP
17There are three situations where intr may be used: From a process that has
18no controlling tty, like the shell running
19.B /etc/rc
20at boot time, from a script that runs in the background, or by the System
21Administrator to restart a daemon.
22.PP
23In the first case
24.B intr
25will use
26.B /dev/console
27as a controlling tty and as standard input, output and error. In the
28second case
29.B intr
30will use
31.B /dev/tty
32to connect the command to the controlling tty. In the third case the
33process will be removed from the process group, and will have I/O redirected
34to
35.B /dev/null
36as input, and
37.B /dev/log
38for output.
39.SH OPTIONS
40.TP
41.B \-d
42Daemonize a process instead of bringing it to the foreground. Don't forget
43to use '&' to make the shell not wait for the process, because you won't be
44able to kill it with the interrupt key.
45.TP
46.BI \-t " seconds"
47Schedule an alarm to kill the process in the given number of seconds.
48Use it for a process that may wait indefinitely for a service that may
49not be available.
50.SH FILES
51.TP 20
52.B /dev/console
53Main computer console.
54.TP
55.B /dev/log
56Message logging device.
57.TP
58.B /dev/tty
59Name for the controlling tty.
60.SH "SEE ALSO"
61.BR boot (8),
62.BR tty (4),
63.BR setsid (2),
64.BR alarm (2).
65.SH BUGS
66Maybe
67.B intr \-d
68should fork to daemonize a process, but the author likes it if the process
69stays in the jobs list of his shell.
70.SH AUTHOR
71Kees J. Bot (kjb@cs.vu.nl)
Note: See TracBrowser for help on using the repository browser.