[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
19990908: question about TITLE='' in GRDDISP
- Subject: 19990908: question about TITLE='' in GRDDISP
- Date: Thu, 09 Sep 1999 15:34:32 -0600
>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