Motley has asked for the wisdom of the Perl Monks concerning the following 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: for SWIFTONE
by swiftone (Curate) on Dec 05, 2000 at 20:33 UTC | |
by mirod (Canon) on Dec 05, 2000 at 21:03 UTC | |
by Motley (Initiate) on Dec 05, 2000 at 21:09 UTC | |
by swiftone (Curate) on Dec 05, 2000 at 21:28 UTC | |
by Motley (Initiate) on Dec 05, 2000 at 21:58 UTC | |
by swiftone (Curate) on Dec 05, 2000 at 22:06 UTC | |
|