📄 intr.8
字号:
.TH INTR 8.SH NAMEintr \- run a command with interrupts enabled.SH SYNOPSIS.B intr.RB [ \-d ].RB [ \-t.IR seconds ].I command.RI [arg "...]".SH DESCRIPTION.B Intrexecutes a command with keyboard interrupts enabled, and standard input,output and error redirected to the terminal or the console. It may alsobe used for the opposite: to detach a process from the terminal..PPThere are three situations where intr may be used: From a process that hasno controlling tty, like the shell running.B /etc/rcat boot time, from a script that runs in the background, or by the SystemAdministrator to restart a daemon..PPIn the first case.B intrwill use.B /dev/consoleas a controlling tty and as standard input, output and error. In thesecond case.B intrwill use.B /dev/ttyto connect the command to the controlling tty. In the third case theprocess will be removed from the process group, and will have I/O redirectedto.B /dev/nullas input, and.B /dev/logfor output..SH OPTIONS.TP.B \-dDaemonize a process instead of bringing it to the foreground. Don't forgetto use '&' to make the shell not wait for the process, because you won't beable to kill it with the interrupt key..TP.BI \-t " seconds"Schedule an alarm to kill the process in the given number of seconds.Use it for a process that may wait indefinitely for a service that maynot be available..SH FILES.TP 20.B /dev/consoleMain computer console..TP.B /dev/logMessage logging device..TP.B /dev/ttyName for the controlling tty..SH "SEE ALSO".BR boot (8),.BR tty (4),.BR setsid (2),.BR alarm (2)..SH BUGSMaybe.B intr \-dshould fork to daemonize a process, but the author likes it if the processstays in the jobs list of his shell..SH AUTHORKees J. Bot (kjb@cs.vu.nl)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -