Hddtemp crontab every hour in to file

User Avatar
👤 admin
🔴 Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 15 Apr 2025 at 16:01
📅 Created: 11 Feb 2021 at 12:43
👀 Viewed: 19 times
✉️ Send Email

hddtemp is a small utility (with daemon) that gives the hard-drive temperature via S.M.A.R.T. (for drives supporting this feature).
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.


Install:
apt-get install hddtemp


Configuration:
crontab -e
echo date,/usr/sbin/hddtemp /dev/sda >> /root/hddtemp.txt
pico /root/hddtemp.txt


Test
tail -f /root/hddtmep.txt

If you want to comment: Login or Register