[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20050125: pqact.conf syntax - piping...or exec
- Subject: 20050125: pqact.conf syntax - piping...or exec
- Date: Tue, 25 Jan 2005 12:58:20 -0700
Dan,
Your pattern below is incorrect. It should end with:
/p(N0R|N0V)
The first 3 letters of the PIL are N0R or N0V, eg
N0REAX or N0VEAX.
The pattern you had was looking for N0R reflectivity from a station N0V.
After that change, the \4 argument would be replaced by either
N0R or N0V (depending on the product. Your csh would then
access this as $1.
Steve Chiswell
Unidata User Support
>From: "Daniel Leins" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200501251919.j0PJJSv2007957
>To whom...
>
>I am looking to add an entry into my pqact.gempak file which will
>execute a script upon receipt of data. I had written a script to decode
>nexrad data as it came in, but was never successful in getting it to run
>via pqact.gempak. It ran fine via crontab though, making me think my
>syntax in the pqact file was bad. To confirm this, I wrote a small
>shell script that would simply rename a file in my home directory. This
>worked fine via crontab, but not through pqact.
>
>This is my pqact.gempak entry...
>
>NEXRAD ^SDUS[2357]. KEAX
>([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(N0R)(N0V)
> EXEC /home/dan/rename.csh
>
>Can someone enlighten me on what I might have done wrong in this
>situation? The spacing is correct, i.e. tabs are where they should be,
>this email has probably shifted things erroneously.
>
>Also, if i wanted to pass an argument to my script, such as N0R or N0V,
>how would I do this?
>
>NEXRAD...
> EXEC /home/dan/rename.csh \4 ?
>
>Any help in this matter would be appreciated.
>
>Thank you,
Dan Leins
>
>
>
--
NOTE: All email exchanges with Unidata User Support are recorded in the
Unidata inquiry tracking system and then made publicly available
through the web. If you do not want to have your interactions made
available in this way, you must let us know in each email you send to us.