I recently started to setup a small home server with Ubuntu Server, and I came across the page showing how to setup the thermal shutdown scripts. I tried setting up the CPU one, but I keep getting this error:
Code: Select all
./CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
./CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
Temperature Core 0 OK at =>
./CPUTempShutdown.sh: line 49: [: -ge: unary operator expected
./CPUTempShutdown.sh: line 59: [: -ge: unary operator expected
Temperature Core 1 OK at =>
Here is the code that I used:
http://www.havetheknowhow.com/scripts/CPUTempShutdown.txt
I have not changed anything, and I am wondering why I am getting this error. And I also wanted to know what to do to fix this, because I think it is affecting the script.
Any help will be appreciated,
Thanks