sudo nohup nice <— in what order?

后端 未结 6 1538
南旧
南旧 2021-02-12 13:51

So I have a script that I want to run as root, without hangup and nicely. What order should I put the commands in?

sudo nohup nice foo.bash &

or

noh

6条回答
  •  孤街浪徒
    2021-02-12 14:11

    the sudo should go last so that nohup and nice aren't running with root privileges.

    so the latter

提交回复
热议问题