Launch modules as subprocesses in the background, and detach

前端 未结 3 2072
借酒劲吻你
借酒劲吻你 2021-01-25 07:57

In bash, I can do the following:

for f in subdir/*.sh; do
    nohup \"$f\" \"$@\" &> /dev/null &
done

in other words, i

3条回答
  •  盖世英雄少女心
    2021-01-25 08:45

    It's probably a duplicate of Run a program from python, and have it continue to run after the script is killed and no, ignoring SIGHUP doesn't help, but preexec_fn=os.setpgrp does.

提交回复
热议问题