bash script does not execute lines after sudo, no errors

182 Views Asked by At

I have a little bash script to run, but it appears to stop without errors on the second line:

export REQUIRE_TRIGGER=0
sudo -s -H
killall ptpd ntpd
nice -n -19 ptpd -gGW -b eth0 -s2 -i NTP -t -c D 

The script is in a file. What am I missing?

1

There are 1 best solutions below

0
On

try to do

    sudo killall ptpd ntpd
    sudo nice -n -19 ptpd -gGW -b eth0 -s2 -i NTP -t -c D