in reply to Re: a dumb question
in thread a dumb question

I changed the qx to qq and displayed the string as it is built. The result was exactly as I expected. I even cut and paste the generated string on the command prompt and it executed with the expected results. Here is the generated string: aml_read /l trace /h FTWAEIPD0001 /s "12/04/2000 07:00:00" /b "12/04/2000 08:00:00" /d all /appl commproc | egrep -c -e tty2

....Which once again should be generated from this:

$tty = qx{aml_read /l trace /h $_[3] /s $_[1] /b $_[2] /d all /appl c +ommproc | egrep -c -e $tty_string}; printf("<TR ALIGN=LEFT VALIGN=TOP>\n"); printf("<TD>%s</TD>\n",$tty_string); chomp($tty); printf("<TD>%d</TD>\n",$tty); printf("</TR>\n");

What is also weird is that I can hardcode the variables in the query and get the same results (although it seems to only work outside the loop). I suppose it is possible that I have more than one problem. One problem could be the qx line and the loop may also have errors.

Thanks Bryan

Replies are listed 'Best First'.
Re: Re: Re: a dumb question
by runrig (Abbot) on Dec 05, 2000 at 03:46 UTC
    What does the output from aml_read look like? Does the web user have permission to run it? Also, it seems a waste to run the command for every tty # when you could tally the results from one run.
Re: Re: Re: a dumb question
by Motley (Initiate) on Dec 05, 2000 at 03:00 UTC
    It should also be noted that this problem didn't start occurring until we upgraded the server we are accessing (FTWAEIPD0001) to AIX 4.3.3 ....... in my opinion it is indirectly related to that.

    thanks again, Bryan