Re: CGI Errors

2001-06-12 Thread Marcel Hicking



Bart-Jan Vrielink [EMAIL PROTECTED] 12 Jun 2001, at 12:04:

 On Tue, 12 Jun 2001, Ritesh Goel wrote:
 
  I have a script which runs fine from the UNIX shell. As soon as I
  try going thru the browser, I get an error which says - Premature
  end of Script Header. What should i do or what can i do ??
 
 It looks like the script does not produce any valid HTTP headers. As a
 minimum it should produce a line 'Content-Type: text/html' (or any
 other content-type) and a blank line, before the html begins.

So that's

print Content-Type: text/html\n\n;
 or 
print Content-Type: text/plain\n\n;

;-)


--  
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: CGI Errors

2001-06-12 Thread Bart-Jan Vrielink
On Tue, 12 Jun 2001, Ritesh Goel wrote:

 I have a script which runs fine from the UNIX shell. As soon as I try
 going thru the browser, I get an error which says - Premature end of
 Script Header. What should i do or what can i do ??

It looks like the script does not produce any valid HTTP headers. As a
minimum it should produce a line 'Content-Type: text/html' (or any other
content-type) and a blank line, before the html begins.

-- 
Tot ziens,

Bart-Jan




Re: CGI Errors

2001-06-12 Thread Marcel Hicking


Bart-Jan Vrielink [EMAIL PROTECTED] 12 Jun 2001, at 12:04:

 On Tue, 12 Jun 2001, Ritesh Goel wrote:
 
  I have a script which runs fine from the UNIX shell. As soon as I
  try going thru the browser, I get an error which says - Premature
  end of Script Header. What should i do or what can i do ??
 
 It looks like the script does not produce any valid HTTP headers. As a
 minimum it should produce a line 'Content-Type: text/html' (or any
 other content-type) and a blank line, before the html begins.

So that's

print Content-Type: text/html\n\n;
 or 
print Content-Type: text/plain\n\n;

;-)




Re: CGI errors

2000-03-15 Thread Roger Abrahamsson
On Tue, 14 Mar 2000, Don Hatch wrote:

 I have a client whose cgi scripts have recently stopped working.  The error 
 log gives this error: 
 
 [error][client ip address](24)Too many open files: counldn't spawn child 
 process:  /path/to/cgi-bin/script.cgi
 
 Does anyone have any suggestions?  Where would I start looking?  I'm running 
 Debian 2.1 and I checked a couple of files like /etc/limits but everything is 
 still commented out.  Any help is appreciated.
 
 Thanks,
 
 Don Hatch
 [EMAIL PROTECTED]
 
This sounds like you have run into kernel limits..
if you run 2.2.x kernels check out the files beneath

/proc/sys/fs

especially file-max and inode-max

Roger Abrahamsson