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.
Tim, If you are PIPE'ing a specific data set to dcgrib2, then, you could instead use "PIPE -close" to a shell script which sequentially runs dcgrib2 accepting the input from stdin, followed by the execution of your postprocessing commands For example, in pqact.conf: CMC CMC_GEM_reg PIPE -close util/cmcgribproc.csh And, in ~ldm/util/ a shell script cmcgribproc.csh can look like: #!/bin/csh -f source ~ldm/.cshrc source ~gempak/Gemenviron dcgrib2 -d $GEMDATA/logs/cmcgrib.log YYYYMMDDHH_cmc.gem && \ ~ldm/util/cmcpostproc.csh exit 0 ########################################################## The script should set up the appropriate environment, including sourcing Gemenviron. Dcgrib2 will read from standard in. You can either chain together your postprocessing commands as above using "&&", or, follow up the dcgrib2 command with your appropriate script commands. Steve Chiswell On Mon, 5 May 2003, Tim Alberta wrote: > Hi, > > I need to execute a second script after my dcgrib2 decoder is finished. > The script adds some precip products to the gempak file dcgrib2 > produced. Is there a way to add an additional PIPE or EXEC statement to > my pqact.conf entry? What is the best way to go about getting the > second script to run immediately after dcgrib2 has finished? > > It seems like I'm missing something really simple here, but I'm not sure > how to proceed. > > Thanks in advance, > > Tim Alberta >