Getting sudo and nohup to work together

后端 未结 9 1635
滥情空心
滥情空心 2021-02-02 06:39

Linux newbie here.

I have a perl script which takes two command line inputs. I tried to run it in the background but this is what I got:

[~user]$ nohup s         


        
9条回答
  •  遥遥无期
    2021-02-02 07:15

    You can set it as your alias:

    sudo sh -c 'nohup openvpn /etc/openvpn/client.ovpn 2>&1 > /dev/null &'
    

提交回复
热议问题