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.
Hi Phil, re: > Thank you very much for your help. No worries. > I utilized the PIPE option and > STDIN in my Perl script -- everything seems to be working fine. Excellent! > Just to clear up one point: the line below PIPE (passed as a command > line parameter) is also passed to the Perl script via STDIN? No. The product contents itself is passed via STDOUT from by pqact (and read using STDIN in your Perl script). The next line (could have been on the same line) is a command line parameter passed to your Perl script. > I understand I will need that to write the incoming data to its > specified location. Correct. > Would the command line parameter be the first "line" of the STDIN? No, you would pick up the name of the file to write as the first parameter passed to the script. The product contents is the only thing that needs to be read from STDIN. > Also, Is it safer/faster to write the file first and then do the > processing? Actually, the order you do your processing should not make a difference since the same amount of work will be done in either case. > Or just do the processing "on the fly" in the script? If you have no need to write the product to disk, then it would likely be faster to not write the product to disk. I was under the impression, however, that you did want the product written to disk. > Thanks again for your help; I really appreciate it. No worries. I'm glad to hear of your success! Cheers, Tom **************************************************************************** Unidata User Support UCAR Unidata Program (303) 497-8642 P.O. Box 3000 address@hidden Boulder, CO 80307 ---------------------------------------------------------------------------- Unidata HomePage http://www.unidata.ucar.edu **************************************************************************** Ticket Details =================== Ticket ID: PLF-256397 Department: Support IDD Priority: Normal Status: Closed