Problem with Thermal Shutdown scripts

Discussion and Technical Support for general software applications and utilities including OS related issues.
Post Reply
wesleyhendricks
Member
Member
Posts: 1
Joined: July 2nd, 2012, 1:59 am

Problem with Thermal Shutdown scripts

Post 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/C ... utdown.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
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

Re: Problem with Thermal Shutdown scripts

Post 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.
Post Reply