This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Steve,I continue to have problems getting the script to execute. I have modified my pqact.gempak to look like this per your suggestion earlier...
NEXRAD ^SDUS[2357]. KOAX ([0-3][0-9])([0-2][0-9])([0-6][0-9]).*/p(N0R|N0V)
EXEC /home/dan/exec.cshFor the sake of speed, I chose a site that was operating (OAX) as opposed to EAX's, which has been down all day. The script, /home/dan/exec.csh is not executed when N0R or N0V data comes in. Again, exec.csh simply renames a file, from before.txt to after.txt. Quite a useless program, but it works for testing purposes.
What could I still be doing wrong? Dan Leins Unidata Support wrote:
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 SupportFrom: "Daniel Leins" <address@hidden> Organization: UCAR/Unidata Keywords: 200501251919.j0PJJSv2007957To 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-- **************************************************************************** < Unidata User Support UCAR Unidata Program < (303)497-8643 P.O. Box 3000 < address@hidden Boulder, CO 80307 < ---------------------------------------------------------------------------- < Unidata WWW Service http://my.unidata.ucar.edu/content/support < ---------------------------------------------------------------------------- < 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.
From address@hidden Tue Jan 25 15:43:56 2005 Return-Path: <address@hidden> Received: from ms-smtp-01.rdc-kc.rr.com (ms-smtp-01.rdc-kc.rr.com [24.94.166.115]) by unidata.ucar.edu (UCAR/Unidata) with ESMTP id j0PMhtv2001686 for <address@hidden>; Tue, 25 Jan 2005 15:43:55 -0700 (MST) Organization: UCAR/Unidata Keywords: 200501252243.j0PMhtv2001686 Received: from [24.94.187.137] (CPE-24-94-187-137.kc.rr.com [24.94.187.137]) by ms-smtp-01.rdc-kc.rr.com (8.12.10/8.12.7) with ESMTP id j0PMhqgU017421 for <address@hidden>; Tue, 25 Jan 2005 16:43:53 -0600 (CST) Message-ID: <address@hidden> Date: Tue, 25 Jan 2005 16:43:53 -0600 From: Daniel Leins <address@hidden> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Unidata Support <address@hidden> Subject: Re: 20050125: pqact.conf syntax - piping...or exec References: <address@hidden> In-Reply-To: <address@hidden> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan EngineX-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on laraine.unidata.ucar.edu X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.1
Steve,Please disregard previous email - problem was within the script - works fine now - apologies for the unnecessary email.
Dan Leins