开发者

How to detach screen programmatically in linux?

开发者 https://www.devze.com 2023-01-18 09:28 出处:网络
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.

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

精彩评论

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