Mailing List Archive

system() function
OK, I solved my own problem (By setting the $| variable to force a flush of the
output buffer). I should give myself a day of thinking before I ask questions...

>
>Why is it when the following code executes, I will usually get the finger
>output _before_ the output of the first print statement. Now, sometimes I can
>get it in the proper order when run from the command line, and sometimes not,
>and _never_ when the output is piped into another program or it is run as a
>cgi script.
>
>print "Content type: text/html\n\n";
>print "<pre>\n";
>system ("finger $arg\@x500.jsc.nasa.gov");
>print "</pre>\n";
>
>Frustrated,
>Todd
>

---
Todd Phillips (713) 483-7694 todd.phillips@jsc.nasa.gov
Information Technology Office todd@killerbee.jsc.nasa.gov
NASA / Johnson Space Center http://www2.jsc.nasa.gov/todd/tphillips.html