View Single Post
Krelle1911
Member
Join Date: Mar 2013
Location: Randers
Old 01-01-2022 , 16:51   Re: [LINUX] Run a sh script that requres root to run in cronjob
Reply With Quote #4

Quote:
Originally Posted by asdfxD View Post
If it's just "renice srcds" than use simply in crontab instead of an extra script....

crontab -e as root:
0 * * * * renice -19 `pidof srcds_linux` >/dev/null 2>&1
I Got the script working - it is basically the same thing, but includes some other things as Well. Thanks tho
__________________
Krelle1911 is offline