How to run a command in the background and get no output?

前端 未结 8 1114
隐瞒了意图╮
隐瞒了意图╮ 2020-12-04 05:28

I wrote two shell scripts a.sh and b.sh. In a.sh and b.sh I have a infinite for loop and they print some output to the te

8条回答
  •  执笔经年
    2020-12-04 05:51

    Run in a subshell to remove notifications and close STDOUT and STDERR:

    (&>/dev/null script.sh &)
    

提交回复
热议问题