Hey guys, basically I installed Ubuntu on an old Dell desktop but the problem is it lacks fans and even the space to install new ones so it runs quite hot....I need it to run 24/7 but I am worried about the internals frying. Specifically, the HDD which is a Seagate (max operating temp = 50c) as it gets up to 47c sometimes which is too close for comfort....
I found a potential command I can use (thanks to hddtemp) to shutdown the computer if temperatures ever hit a specific degree and I'd like to implement it, but have never manually added a job to crontab. Keep in mind it is a headless PC so I'll be doing this via command line and yes I do know where the crontab file is.
Command:
^Do I just copy/paste that into the file? The stock options already there seem to be formatted completely different....Also, I have to use sudo to get a reading from hddtemp, do I have to specify that in the crontab?Code:$(hddtemp /dev/sda | awk '{ print $4}' | awk -F '°' '{ print $1}') -ge 50 ] && /sbin/shutdown -h 0 || :
Bookmarks