How to start process via SSH, so it keeps running?

前端 未结 1 581
难免孤独
难免孤独 2020-12-19 05:49

I have three files: monitor.sh, which starts python scripts:

sudo python ./webCheck &
sudo python ./apiCheck &

and the otherones, w

1条回答
  •  隐瞒了意图╮
    2020-12-19 05:57

    You should be able to use:

    sudo nohup python ./webCheck &

    sudo nohup python ./apiCheck &

    I don't think your monitor.sh will need it, since it should take a relatively short time to start the other two. However I'm not positive if the two checks would become children of monitor.sh, which may end up being an issue.

    0 讨论(0)
提交回复
热议问题