Question: Currently our Sun E450 could detect room temperature ie ambient (from
"prtdiag -v" and I've observed that it's consistently reporting about 2 Celsius lower
than the general DC room temperature :
# prtdiag -v | grep -i ambie
"date" command in this Solaris 8 box's format is :
Sat May 9 06:06:58 SGT 2009
I'll need a Shell script that run every 1 minute (I'll put this into the crontab as
* * * * * /path/script_name) that will do the following :
I'll need this Shell script to be able to notify/email me when AMBIENT is :
(>= 21 AND there's a change from the reading one minute ago) OR
(<= 20 AND the temperature recorded one minute ago is >= 21)
Above script basically notifies me once only (not repeatedly) when temperature
hits 21 C but if temperature keep going up (at levels above 21 C) it will keep emailing/
This script only notify me once when temperature go below 21 C (but only notify
once and not repeatedly and it will stop notifying if room temperature stays below
the script in pseudo codes :
Currentdatetime=yyyymmdd:hhmm (24 hr format)
echo RoomTemp + " " + Currentdatetime >> yyyymmdd_outputfile
add 2 to the value given by "prtdiag -v | grep AMBIENT" (call this variable RoomTemp
if RoomTemp equals or exceeds 21
check RoomTemp vs last_temperature recorded in last line of yyyymmdd_outputfile
if RoomTemp equal or exceed 21 AND is higher than last_temperature
email to myemail the value Currentdatetime+" "+":Room temp is now "+RoomTemp
if last_temperature in last line of yyyymmdd_outputfile >= 21 and RoomTemp is <=20
email to myemail the value Currentdatetime+" "+":Room temp now is down to "+RoomTemp
Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!
How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space.
w60 means Windows Vista or Windows Server 2008.
w61 means Windows 7 or Windows Server 2008 R2.
There are various …
Learn how to navigate the file tree with the shell.
Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…