V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
fanweixiao
V2EX  ›  Linux

不用screen能否attach到background process上?比如用nohup,disown这类东东弄到到后台的

  •  
  •   fanweixiao ·
    fanweixiao · 2012-08-27 17:44:04 +08:00 · 3334 次点击
    这是一个创建于 4253 天前的主题,其中的信息可能已经有所发展或是发生改变。
    google没找到答案,来这里问下。我用nohup或者disown让process在background,断了ssh,再连接,这时候jobs里肯定看不到了。比如我在运行的是一个像tail -f这样的程序的话,我希望可以在stdout上看到显示内容时,除了screen这样的东东,有没有什么简单的东西能让我直接再attach到这个process上?
    2 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2012-08-27 20:37:29 +08:00   ❤️ 2
    wangkangluo1
        2
    wangkangluo1  
       2012-08-28 11:16:37 +08:00   ❤️ 1
    tmux
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2906 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 02:43 · PVG 10:43 · LAX 19:43 · JFK 22:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.