Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- sudo touch /var/log/cputemp.log
- TEMP=$(sensors | grep "Core0")
- DATE=$(date)
- UPTIME=$(uptime)
- DISK=$(df -Bm | grep "/dev/map")
- echo $DATE $TEMP $UPTIME $DISK >>/var/log/cputemp.log
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement