Questions tagged «sigint»

4
少打扰
我经常通过管道将程序输出减少到更少,例如 produce_output | less 这很有效,直到produce_output产生大量输出为止。如果我搜索文件深处的一些文本,则报告较少 Calculating line numbers... (interrupt to abort) 如果我用Control + C中断,它也会杀死produce_output,这将阻止它产生进一步的输出。有什么办法可以将中断发送的次数更少,从而使之produce_output继续运行? 我知道我可以使用kill -INT less_process,但我认为必须有一个更好的解决方案。
13 less  sigint 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.