On Mon, Feb 2, 2009 at 2:17 PM, Joseph Hall <[email protected]> wrote: > Here's an ugly one-liner for a cron job: > > TEMP=$(sensors -f | grep -m 1 F); TEMP=$(echo $TEMP | sed > 's/[^[:digit:]]//g'); if [ "$TEMP" -ge 160 ]; then echo 'TOO HOT' | > mail root -s 'TOO HOT'; fi > > Of course, you could beautify it and put it into a script too. I'm > sure plenty of pluggers would be able to give you a much prettier > script too. This was just a quick and dirty one off the top of my > head.
And thus another 'production application' get's rolled to live, and forever becomes the bane of maintenance programmers. -- Jayce^ The Cloud is my Platform /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
