开发者

How to detach screen programmatically in linux?

This question is about the linux utility screen.

I'd like to make a script to launch a program in screen then detatch it automatically after it starts.

I've got the script starting screen, starting the command in screen, 开发者_开发百科but my question is now how do I detach it?

Thanks


Don't attach in the first place. From the screen manual:

  -d -m   Start screen in "detached" mode. This creates a new session but
          doesn't  attach  to  it.  This  is  useful  for  system startup
          scripts.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜