Re: [foxboro] OAJ
- From: steve.shimp@xxxxxxxxxxxxxx
- To: foxboro@xxxxxxxxxxxxx
- Date: Wed, 16 Aug 2006 07:20:34 -0400
Troy,
I do something very similar and I'm using the non-AIM* Historian OAJ. I
have a cron job setup to run twice a day on an AW that generates the report
using a shell script. The script takes an argument of either AM or PM to
indicate when the time period for which the messages should be pulled.
This was a quick and dirty method, but we've been using it for 4 years and
I haven't really cleaned it up.
--------------------------------------------------------------------------------
#!/bin/sh
ddate=`date '+%Y-%m-%d'`
fext=`date '+%Y%m%d'`
filename="/opt/site/oaj/$fext-$1.oaj"
script="/usr/fox/disp_tools/oajgen"
all="*"
if [ "$1" = "AM" ]
then
"$script" "$filename" hist01 "$all" "$all" "$all" "$ddate 00:00"
"$ddate 11:59"
elif [ "$1" = "PM" ]
then
"$script" "$filename" hist01 "$all" "$all" "$all" "$ddate 12:00"
"$ddate 23:59"
else
echo "Usage: argument supplied must be either AM or PM"
fi
----------------------------------------------------------------------------------
Hope this helps.
Steve Shimp
Maintenance & Systems Engineer
ExxonMobil Paulsboro Lube Plant
phone: 856.224.5059 cell: 609.820.8501 fax: 856.224.5030
email: steve.shimp@xxxxxxxxxxxxxx
foxboro-bounce@xxxxxxxxxxxxx wrote on 08/15/2006 04:06:52 PM:
> Have had an unusual request from one of our sites.
> They want to run the OAJ, no problem as I have it running, but they want
it
> to only print out at shift change (6AM and 6PM). Does anyone have a quick
> and dirty way to do this. I played with the Report writer and this
doesn't
> appear to do what I need.
> Any suggestions will be greatly appreciated.
> Thanks
>
> Troy L. Brazell
> Duke Energy Field Services
> Sr. Process Control Analyst
> ISA CCST
> Phone (405) 263 4130
> Cell (405) 301 2994
> Okarche Plant
> Route 3 Box 95
> Okarche, OK. 73762
> *****************************
> MS Windoze the cure for Insomnia
> *****************************
>
>
>
> _______________________________________________________________________
> This mailing list is neither sponsored nor endorsed by Invensys Process
> Systems (formerly The Foxboro Company). Use the info you obtain here at
> your own risks. Read http://www.thecassandraproject.org/disclaimer.html
>
> foxboro mailing list: http://www.freelists.org/list/foxboro
> to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
> to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
>
_______________________________________________________________________
This mailing list is neither sponsored nor endorsed by Invensys Process
Systems (formerly The Foxboro Company). Use the info you obtain here at
your own risks. Read http://www.thecassandraproject.org/disclaimer.html
foxboro mailing list: http://www.freelists.org/list/foxboro
to subscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=join
to unsubscribe: mailto:foxboro-request@xxxxxxxxxxxxx?subject=leave
- References:
- [foxboro] OAJ
- From: Troy L Brazell
Other related posts:
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- » Re: [foxboro] OAJ
- [foxboro] OAJ
- From: Troy L Brazell