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.
精彩评论