nohup退出终端进程就消失问题 求高手

GW786228836 2014-08-29 12:56:59
我用nohup 启动一个命令 nohup tail -*.log & 终端关闭 该进程就消失 我按照网上的 先等命令成功 按回车,退出到命令界面,再输入exit退出终端 ,但是重新上终端 进程还是消失 求高手
...全文
1877 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
I was wrong. Have u checked nohup.out yet? If standard output is a terminal, it and standard error are redirected so that they are appended to the file nohup.out; if that cannot be written to, they are appended to the file $HOME/nohup.out. If that cannot be written to, the command is not run.
  • 打赏
  • 举报
回复 1
my guess is because this process is associated with tty. When u terminated tty, the process goes with it...

18,829

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧