Re: Virtual Call of the Wind...

From: Michael Schuh (schuh@apm-iris4.arc.nasa.gov-DeleteThis)
Date: Tue Mar 28 2000 - 13:41:53 PST


Received: from opus.hpl.hp.com (root@opus.hpl.hp.com-DeleteThis [15.0.168.176]) by jr.hpl.hp.com (8.8.6/8.8.6) with ESMTP id NAA24153 for <wind_talk_ls@jr.hpl.hp.com-DeleteThis>; Tue, 28 Mar 2000 13:45:41 -0800 (PST)
Received: from hplms26.hpl.hp.com (hplms26.hpl.hp.com [15.255.168.31]) by opus.hpl.hp.com (8.8.6/8.8.6) with ESMTP id NAA06798 for <wind_talk@opus.hpl.hp.com-DeleteThis>; Tue, 28 Mar 2000 13:45:42 -0800 (PST)
Received: from apm-iris4.arc.nasa.gov (apm-iris4.arc.nasa.gov [128.102.162.184]) by hplms26.hpl.hp.com (8.9.3 (PHNE_18979)/HPL-PA Relay) with ESMTP id NAA24549 for <wind_talk@opus.hpl.hp.com-DeleteThis>; Tue, 28 Mar 2000 13:45:40 -0800 (PST)
Received: (from schuh@localhost) by apm-iris4.arc.nasa.gov (980427.SGI.8.8.8/980728.SGI.AUTOCF) id NAA13309; Tue, 28 Mar 2000 13:41:53 -0800 (PST)
Date: Tue, 28 Mar 2000 13:41:53 -0800 (PST)
From: schuh@apm-iris4.arc.nasa.gov-DeleteThis (Michael Schuh)
Message-Id: <200003282141.NAA13309@apm-iris4.arc.nasa.gov-DeleteThis>
To: wind_talk@opus.hpl.hp.com-DeleteThis, schuh@apm-iris4.arc.nasa.gov-DeleteThis
Subject: Re: Virtual Call of the Wind...

The script is set up to exit right now.

> My bin/wind_report_pager.csh script has:
>
> ] #!/bin/csh
> ] #
> ] # This script is called by procmail. Procmail sends the wind report
> ] # to it. The script finds the SFO|SoSF_SBrMt|Sac|Stoc reports and
> ] # emails them to my pager. Only send the reports between 11:00 and 20:00.
> ] #
> ] # Michael Schuh
> ] # July 27, 1999
> ] #
> ]
> ] # exit because we are out of season.

Comment out the next two lines when you want the script to work.

> ] cat > /dev/null
> ] exit(0)
> ]
> ] sed -n '/Current Conditions/,/Forecasts/p' | \
> ] egrep 'SFO|SoSF_SBrMt|Sac|Stoc' | \
> ] sed '/SFO.*0.00 /d' | \
> ] uniq > ~/windrpt
> ]
> ]
> ] set hour=`date +%H`
> ] if ( $hour > 11 ) then
> ] set Time=`date "+%I:%M PM"`
> ] else
> ] set Time=`date "+%I:%M AM"`
> ] endif
> ]
> ] #The following line is for debugging. It sends my email account the message.
> ] #mail -s "Pager $Time Wind Report" mschuh@mail.arc.nasa.gov-DeleteThis < ~/windrpt
> ]
> ] if ( $hour > 10 && $hour < 21 ) then
> ] mail -s "$Time Report" 6503710040.1142141@pagenet.net-DeleteThis < ~/windrpt
> ] endif
>
> Michael
>



This archive was generated by hypermail 2b29 : Fri Sep 27 2002 - 12:23:59 PDT