start a background process with nohup using fabric

后端 未结 10 2094
广开言路
广开言路 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 22:45

    I'm using Erich Heine's suggestion to use 'dtach' and it's working pretty well for me:

    def runbg(cmd, sockname="dtach"):
        return run('dtach -n `mktemp -u /tmp/%s.XXXX` %s' % (sockname, cmd))
    

    This was found here.

提交回复
热议问题