Page 1 of 1

Problem with Thermal Shutdown scripts

Posted: July 2nd, 2012, 2:08 am
by wesleyhendricks
Hello,
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

Re: Problem with Thermal Shutdown scripts

Posted: July 2nd, 2012, 8:42 am
by Ian
Hi there Wesley and welcome to the forums. :thumbup:

OK, that script is looking for output in specific columns and the output you're seeing is different to mine (due to us having different CPUs) so you need to edit the script to suit. So, please type the following command on your server and post the output from it in your next post:

Code: Select all

sensors


Thanks,

Ian.