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.
>From: weather <address@hidden> >Organization: NMSU/NSBF >Keywords: 199909082116.PAA05811 McIDAS GRDDISP shell Robert, Sorry I couldn't get to this yesterday, but I was fighting the SC5.0 problem (still am). >I am having a small but irritating problem with one of my >CGI scripts. I guess it is partly a Unix shell question >as well. I would like the user to be able to title the >image produced by GRDDISP in the CGI script (Bourne shell). >The variable that contains the title that is passed is >$WWW_txt. So something like TITLE='$WWW_txt', but that of >course is wrong and prints out just $WWWbtxt for the title. This is likely due to the shell interpreting the single quotes to mean to not evaluate the reference to the Unix environment variable ($WWW_txt). I would try escaping the quotes in your script. For the Bourne shell, this would look like: TITLE=\'$WWW_txt\' >So I gave up and just tried to print no title, and >add that to the image later with Paint Shop Pro. In a McIDAS >session you simply do TITLE=''. In the script, TITLE='' >produces the default title (model, fcst hour..etc). I can't >get it to not write a title or to figure out how to pass >the variable containing the title. Any help you could >provide would be much appreciated. Try the above and let me know if it doesn't fix your problem. Tom