如何使用Python Fabric的命令分离屏幕会话

我知道Ctrl AD组合。 实际上我看着我正在用screen运行一个漫长的过程。 当我使用Fabric来自动化我的活动时,我想以编程方式出来。 如果我进入命令screen time python3 file.py 1000 2000 5从织物 ,它确实工作,但我怎么出来呢?

通常情况下,你不会脱离屏幕 – 你不会把自己放在首位。

从这个堆栈溢出回答 :

 -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.