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.
Robb Kambic wrote: > Date: Fri, 19 May 2000 10:08:34 -0600 > From: Unidata Support <address@hidden> > Reply-To: Greg Thompson <address@hidden> > To: address@hidden > Subject: 20000519: pqact.conf EXEC question > > >To: address@hidden > >From: address@hidden (Greg Thompson) > >Subject: pqact.conf EXEC question > >Organization: UCAR/Unidata > >Keywords: 200005182227.e4IMRtT26827 > > A hopefully simple question: > > I'm trying to use the EXEC option for running a decoder from pqact.conf. > My question is the syntax for standard input/output redirection. I have > the following in my file. Will this work? > > WMO ^[AF]SUS0[12] KWBC ([0-3][0-9])([0-2][0-9]) EXEC > /path/bin/my_decode.pl < > /path/data/(\1:yyyy)(\1:mm)\1/(\1:yyyy)(\1:mm)\1\2.FRONTS >& > /path/whatever/.junk.std_out > > The above line uses the C-shell sytax for I/O redirection. Must I use > the Bourne shell syntax instead? > > Thanks! > > -- > +--------------------------------------------------------------+ > | Greg Thompson http://www.rap.ucar.edu/staff/gthompsn/ | > | Research Applications Program | > | (303) 497-2805 National Center for Atmospheric Research | > | (fax) -8401 P.O. Box 3000 Boulder, CO 80307-3000 | > +--------------------------------------------------------------+ Hi Greg, No, sorry, what you wrote won't work because the ldm parent process can't pass the file handles to the child process, my_decode.pl. Can you rewrite my_decode.pl to take those file names as arguments and have it open the files? Anne -- *************************************************** Anne Wilson UCAR Unidata Program address@hidden P.O. Box 3000 Boulder, CO 80307 ---------------------------------------------------- Unidata WWW server http://www.unidata.ucar.edu/ ****************************************************