小编Hav*_*avy的帖子

fabric不能用nohup调用远程脚本

在远程服务器中,我有一个脚本test.sh,如:

#!/bin/bash
echo "I'm here!"
nohup sleep 100&
Run Code Online (Sandbox Code Playgroud)

从本地,我运行'fab runtest'来调用远程test.sh.

def runtest():
    run('xxxx/test.sh')
Run Code Online (Sandbox Code Playgroud)

我可以得到输出"我在这里!",但我无法在远程服务器中找到睡眠过程.我错过了什么?

谢谢!

python nohup fabric

4
推荐指数
1
解决办法
3808
查看次数

标签 统计

fabric ×1

nohup ×1

python ×1