免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2217 | 回复: 5
打印 上一主题 下一主题

linux的命令的前后台 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-17 13:12 |只看该作者 |倒序浏览
在linux中我执行了一个命令,命令后面加了& disown,请问怎么把这个命令启动在前台,
&,nohup,disown是 什么意思

论坛徽章:
0
2 [报告]
发表于 2011-04-17 13:34 |只看该作者
STFW……

论坛徽章:
0
3 [报告]
发表于 2011-04-17 14:46 |只看该作者

论坛徽章:
0
4 [报告]
发表于 2011-04-17 15:15 |只看该作者
本帖最后由 xiaopan3322 于 2011-04-17 15:45 编辑

去看下这篇文章:
http://www.ibm.com/developerworks/cn/linux/l-cn-nohup/index.html

论坛徽章:
33
ChinaUnix元老
日期:2015-02-02 08:55:39CU十四周年纪念徽章
日期:2019-08-20 08:30:3720周年集字徽章-周	
日期:2020-10-28 14:13:3020周年集字徽章-20	
日期:2020-10-28 14:04:3019周年集字徽章-CU
日期:2019-09-08 23:26:2519周年集字徽章-19
日期:2019-08-27 13:31:262016科比退役纪念章
日期:2022-04-24 14:33:24
5 [报告]
发表于 2011-04-17 15:42 |只看该作者
让进程在后台可靠运行的几种方法
http://bbs.chinaunix.net/thread-1118626-1-1.html

论坛徽章:
0
6 [报告]
发表于 2011-04-17 17:56 |只看该作者
回复 1# greenandtree


   
34.6.1 Handling of SIGHUP by the Shell

Some job-control shells also send SIGHUP to stopped background jobs if the
shell exits normally(e.g., when we explicitly log out or type Control-D in a shell
window). This is done by both bash and the Korn shell (after printing a message
on the first logout attempt).
The nohup(1) command can be used to make a command immune to the
SIGHUP signal—that is, start it with the disposition of SIGHUP set to SIG_IGN. The bash
built-in command disown serves a similar purpose, removing a job from the
shell’s list of jobs, so that the job is not sent SIGHUP when the shell terminates.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP