using watch to make a log?
is it possible to make watch r edirect it's output into a file to make a kind of makeshift log? so if i wanted to log my cpu temperature i'd do this:
Code:
watch -n.5 cat /proc/acpi/thermal_zone/ATF0/temperature Code:
temperature: 53 C |
After taking a really quick look at the watch man page, I'd think you could just tack on ">> somelog.file" to the end of your command to redirect the output to the file.
Then again, rather than using watch, which I suspect you're running from a command line, possibly in the background, why not try running the cat statement with the redirect in a cron job? Make sure you use ">>" and not ">" so you will be appending to the log file, rather than overwriting it each time it executes. -Alan |
appending >> on watch didnt work, but i'll try the cron thing. thx
|
All times are GMT -5. The time now is 03:35 AM. |