1. help Linux+CGI

I have a problem. I wrote a CGI that updates the database file (123.dat)
and creates staticfiles (123.htm) from the form data sent. It works
fine. But I wanted the CGI to delete some of the old static files so I
put a

system("rm 123.htm",2)

kind line into my code. Unfortunatelly it completely screw up my proggy.
There's no ex.err but I found following message in the httpd_error_log
of the server.

Error opening terminal: unknown.
[Mon May 14 11:35:46 2001] [error] [client 193.224.82.176] Premature end
of script headers: /path/123.ex

What can be the problem? What should I do? Should I use system_exec()?
IT doesn't really seem to be a better solution? Any help is welcome!

Thank you in advance.

Regards,

Salix

P.S. Suggestion for Euphoria v2.3 Let temp[length(temp)] mean temp[-1].
Please! All my proggies are full of this length() usage

new topic     » topic index » view message » categorize

2. Re: help Linux+CGI

why dont you debug the code or delete this part that has gone wrong, im only 
an ametur programmer and only know basic and a little bit of C/C++

>From: salix at freemail.hu
>Reply-To: EUforum at topica.com
>To: EUforum <EUforum at topica.com>
>Subject: help Linux+CGI
>Date: Mon, 14 May 2001 13:28:25 +0200
>
>
>
>I have a problem. I wrote a CGI that updates the database file (123.dat)
>and creates staticfiles (123.htm) from the form data sent. It works
>fine. But I wanted the CGI to delete some of the old static files so I
>put a
>
>system("rm 123.htm",2)
>
>kind line into my code. Unfortunatelly it completely screw up my proggy.
>There's no ex.err but I found following message in the httpd_error_log
>of the server.
>
>Error opening terminal: unknown.
>[Mon May 14 11:35:46 2001] [error] [client 193.224.82.176] Premature end
>of script headers: /path/123.ex
>
>What can be the problem? What should I do? Should I use system_exec()?
>IT doesn't really seem to be a better solution? Any help is welcome!
>
>Thank you in advance.
>
>Regards,
>
>Salix
>
>P.S. Suggestion for Euphoria v2.3 Let temp[length(temp)] mean temp[-1].
>Please! All my proggies are full of this length() usage
>
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: help Linux+CGI


new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu