Well, I found out what was the problem:  When I investigated anlgform.pl, I 
only saw that analog was being invoked through a pipe, and it seemed that 
the pipe contained some configuration commands.  My assumption was that 
analog would automagically put out the Content-type header.  Running my 
script through more proved different.  After I added the header before I 
invoke analog with print `analog... `, my script now works fine.  That is, 
analog is invoked and produces output.  It's not the right output, but 
that's a different problem I'll fix later.  Thanks for giving me the 
insight to look at analog's output :-)

Carsten


At 09:19 10-04-01 -0800, you wrote:
>This Perl CGI program runs on a server behind a firewall.  The only people 
>with access to the pages are my wife and I, so security is not really an 
>issue for this program.  Besides, the only parameter the program 
>understands is SiteNo, which causes it to invoke analog with a different 
>configuration file (I'm hosting only a handful of sites).  While I 
>appreciate the flexibility of anlgform.pl, it really does far too much for me.
>
>At 16:37 10-04-01 +0100, you wrote:
>>CGI programs have to send certain header lines to the browser.
>
>Content-type: text/html\n\n seems to work for me.
>
>
>>I gather from this that you don't know much about CGI programming. If so,
>>before writing CGI programs, please, please read up on the security issues.
>>If you just write a naive CGI program without knowing what you are doing,
>>you are more likely than not to open up huge security holes on your server.
>>This is not an exaggeration! Better still, make do with anlgform.pl. :)
>>
>>--
>>Stephen Turner               http://www.statslab.cam.ac.uk/~sret1/
>>   Statistical Laboratory, Wilberforce Road, Cambridge, CB3 0WB, England
>>   "Your account can only be used for a single internet session at any one
>>    time and for no more than 24 hours in any one day." (NTL terms of use)
>>
>>+------------------------------------------------------------------------
>>|  This is the analog-help mailing list. To unsubscribe from this
>>|  mailing list, go to
>>|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
>>|
>>|  List archives are available at
>>|    http://www.mail-archive.com/[email protected]/
>>|    http://lists.isite.net/listgate/analog-help/archives/
>>|    http://www.tallylist.com/archives/index.cfm/mlist.7
>>+------------------------------------------------------------------------
>
>========================================================================
>                             Carsten P. Gehrke
>                      mailto:[EMAIL PROTECTED]
>========================================================================
>
>+------------------------------------------------------------------------
>|  This is the analog-help mailing list. To unsubscribe from this
>|  mailing list, go to
>|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
>|
>|  List archives are available at
>|    http://www.mail-archive.com/[email protected]/
>|    http://lists.isite.net/listgate/analog-help/archives/
>|    http://www.tallylist.com/archives/index.cfm/mlist.7
>+------------------------------------------------------------------------

========================================================================
                             Carsten P. Gehrke
                      mailto:[EMAIL PROTECTED]
========================================================================

+------------------------------------------------------------------------
|  This is the analog-help mailing list. To unsubscribe from this
|  mailing list, go to
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  List archives are available at
|    http://www.mail-archive.com/[email protected]/
|    http://lists.isite.net/listgate/analog-help/archives/
|    http://www.tallylist.com/archives/index.cfm/mlist.7
+------------------------------------------------------------------------

Reply via email to