Hddtemp crontab every hour in to file

Simple how to tutorials for linux.
Post Reply
User avatar
sonik
Site Admin
Posts: 37
Joined: 12 Nov 2018, 22:12

Hddtemp crontab every hour in to file

Post by sonik » 13 Nov 2018, 20:58

About
In this article we are going to create a txt file and in it we are going to store the hdd temperature for every hour.
hddtemp.jpg
hddtemp.jpg (49.94 KiB) Viewed 458 times
Install

Code: Select all

apt-get install hddtemp
Configuration

Code: Select all

crontab -e

Code: Select all

 * * * * echo `date`,`/usr/sbin/hddtemp /dev/sda` >> /root/hddtemp.txt

Code: Select all

pico /root/hddtemp.txt
Test

Code: Select all

tail -f /root/hddtmep.txt

Post Reply