start a background process with nohup using fabric

后端 未结 10 2089
广开言路
广开言路 2020-12-04 22:31

am trying to start a celerycam process using fabric using the below nohup command. Unfortunately, nothing is happening, manually using the same command i could start the pro

10条回答
  •  鱼传尺愫
    2020-12-04 23:09

    you just need to run

    run("(nohup yourcommand >& /dev/null < /dev/null &) && sleep 1")
    

提交回复
热议问题