Can't get Fabric's detached screen session example to work

前端 未结 3 1525
名媛妹妹
名媛妹妹 2021-01-02 05:29

I am trying to execute a script on a remote host using a detached screen session. I tried out the example Fabric gives and unfortunately couldn\'t get it to work.

         


        
3条回答
  •  耶瑟儿~
    2021-01-02 05:58

    Use it like this:

    run('sudo screen -d -m python app.py && sleep 1', pty=True) 
    
    screen -d -m 
    

    Start a session that starts in disconnected mode

提交回复
热议问题