On Tue, 5 Dec 2000, Lam H S, Ivan (ITPCS CC) wrote:
> Hi, Mr. Stephen Turner and EveryBody :
> The following are the statements in my Unix Script to call analog. I
> have problem about the Argument in the statement "analog.....+C"HOSTNAME
> IVAN_LAM" :
>
> var_hdr=IVAN_LAM
> var_tmpfile=access.log
> var_output=abc
> qn='"'
> heading='+C"HOSTNAME $var_hdr" '
> analog $var_tmpfile -O$output $heading
>
> From the above statements the analog can create correct output file
> - abc from the sever log file - access.log, however the heading of the
> report is not " Web Server Statistics for IVAN_LAM" , it's just "Web Server
> Statistics for" .
>
> Since the content of the variable var_hdr and var_output are always
> changing, let's say in the script , analog will be called five times and
> each time the var_hdr and var_output will have different content, so that
> the heading in the five reports will be different for identification.
>
> It seems that the value in the variable $heading cannot be passed to
> analog. In addition, analog show the following message when I running the
> above script :
>
> Warning C: Unknown configuration command: ignoring it:
> "HOSTNAME
It looks like it's something to do with the shell splitting things up. Maybe
using different quotes would help, or something. But someone who really
knows about shell programming would be better able to answer this question.
--
Stephen Turner http://www.statslab.cam.ac.uk/~sret1/
Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
"The Hubble Space Telescope has shut itself down, preventing astronomers
from making any observations of the Universe." (BBC News, 15 Nov 1999)
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------