On Tue, 1 Jun 1999, [Bart] wrote:

> Hello,
> 
> As you can read in my previous message I want to change the Analog CGI
> program to work with Report Magic.
> I have some little questions wich will clear up a few things for me when
> answered:
> 
> How does the CGI program work? It will run Analog with the right config file
> and the command 'w', but how are the settings made on the form passed to
> Analog?

They're piped, i.e. sent straight to analog's stdin. The crucial command is
  thepipe = popen(...)

> Where do the statistics generated by Analog go? Are they temporary writed
> down on the server and transfered by the CGI program to the browser
> (client)?

No, no temporary files are used. They're sent to analog's stdout. That
causes the CGI program to send them to the browser.

> What does 'thepipe' and 'fflush' actually mean? In the source, is there one
> main point where everthing is writed to the browser (client)?
> 

thepipe is just a name for the pipe it's writing to.

All the fprintf commands print to the pipe, which causes that command to be
sent to analog. fflush() just makes sure nothing is buffered at the end.

-- 
Stephen Turner    [EMAIL PROTECTED]    http://www.statslab.cam.ac.uk/~sret1/
  Statistical Laboratory, 16 Mill Lane, Cambridge CB2 1SB, England
  "Due to the conflict in Kosovo, we will not be showing the movie Wag the
   Dog. Instead, we will show Mortal Kombat: Annihilation." Cable & Wireless

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe analog-help" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to