log your PC's motherboard and CPU temperature along with the current date

echo `date +%m/%d/%y%X |awk '{print $1;}' `" => "` cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2, $3;}'` >> datetmp.log
Uses the data in the /proc system, provided by the acpid, to find out the CPU temperature. Can be run on systems without lm-sensors installed as well.
Sample Output
08/25/0902:54:32 => 51 C

By: ninadsp
2009-08-24 21:26:29

1 Alternatives + Submit Alt

What Others Think

Thank you for the information regarding the /proc/acpi/thermal_zone directory. You may want to let the users know that they should have this script in a while loop and to fork it. i.e. #!/bin/bash while :; do echo `date +%m/%d/%y%X |awk '{print $1;}' `" => "` cat /proc/acpi/thermal_zone/THRM/temperature | awk '{print $2, $3;}'` >> datetmp.log; done # # #nohup file.sh &
Abiden · 670 weeks and 4 days ago
well, i know i'm commenting damn late, forgot to reply. i was thinking of letting crond handle the execution. this one's neat too, but shouldn't there be a sleep in the middle?
ninadsp · 664 weeks and 4 days ago
boneshia.com is one of the best leather jacket website that provide best leather jackets. we make best quality leather jackets to give you what you need. we make things according to the requirements. Email: info@boneshia.com Address: 45 Hanbury Crescent, Brampton, Ontario, ON L6X 0Y9, Canada Phone: +1 905867714 Website: https://www.boneshia.com/
sophiaemma · 51 weeks and 5 days ago
Love Tarot is an expressly informative channel for lovers of tarot and horoscopes. Alicia, Spanish tarot reader and seer, lover and connoisseur of the exciting world of tarot. Telephone Tarot consultations. Tarot of Love and Horoscopes. Thank you for visiting my channel and you can take advantage of some content for you and all yours. May God Bless you and have Peace all the days of your life. https://www.youtube.com/watch?v=Fjz5l4ErsBM
KayGasaway · 10 weeks and 1 day ago
Thank you a bunch for sharing this with all of us you actually realize what you are talking about! Bookmarked. Please also seek advice from my site =). We could have a hyperlink change contract between us! laundry chute fusible link
KayGasaway · 9 weeks and 4 days ago
Positive site, where did u come up with the information on this posting?I have read a few of the articles on your website now, and I really like your style. Thanks a million and please keep up the effective work. Nft gaming
KayGasaway · 7 weeks and 3 days ago
Are you looking to sell your junk car for cash in Buffalo, NY-Buffalo Junkyard provides the best cash offer with free towing service in Buffalo and ... https://bobscashforjunkcarsbuffalony.com
gexeji53 · 4 weeks ago
sell your travel trailer RV Wheel Estate offers a free way to sell your RV in Holland, MI. We appraise each RV individually based on condition, age, and other factors to give you ... https://rvwheelestate.com/
goxah55535 · 3 weeks and 6 days ago
Over 30 years experience in roofing repairs, new roof installations and guttering in and around London, Surrey, Guildford, Epsom and Shepperton Roofer Shepperton
goxah55535 · 3 weeks and 5 days ago
I know this is one of the most meaningful information for me. And I'm animated reading your article. But should remark on some general things, the website style is perfect; the articles are great. Thanks for the ton of tangible and attainable help. 10mm ball stud bracket for gas spring
KayGasaway · 3 weeks and 4 days ago
Watch anime online in English., watch Gogoanime, anime online, free anime, english anime, sites to watch 9anime You watch free series and movies gogoanime
yarosel701 · 3 weeks and 3 days ago
Presidential Auto Sales & Service offer a full range of dealership services including car financing. We have amazing deals on used cars so come see us now. Used luxury cars
goxah55535 · 3 weeks and 2 days ago
This is often as a result exquisite and even very creative. Freezing take pleasure in that tones and even whomever makes the application with the -mail can be beaming. Sunset sailing zadar
lahehan967 · 2 weeks and 6 days ago
Essaywriter is a cheap essay writing service offering the best balance between quality and price. Regular customers enjoy special discounts, deals, and other perks. www.essaywriter.org/
gexeji53 · 2 weeks and 6 days ago
whoah this blog is great i love reading your articles. Keep up the good work! You know, a lot of people are searching around for this information, you can help them greatly. Discount Frankfurt sightseeing Tickets
nakav51247 · 2 weeks and 5 days ago
When you use a genuine service, you will be able to provide instructions, share materials and choose the formatting style. ?????????
KayGasaway · 2 weeks and 3 days ago
Fullslot888, whether it's Slotxp Joker123 Live22 Evoplay Simpleplay, it can be called one place, end the picture in one app. LOT888TH fullslot eiei
gexeji53 · 2 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: