Mail Archives: djgpp/2000/05/17/05:21:17
Hmm,
I have winperl and dosperl running as interpreter for my winhttpd 1.4
under WfW 3.11 and there is following:
WinPerl: If I call a /cgi-win/script.pl file in my httpd and the .pl
extension is associated with my winperl.exe, the httpd create
a temp-file like htjshckj.acc(ept), htjshckj.ini and htjshckj.in
Then the httpd execute the winperl.exe like
winperl.exe -cgi %temp-path%/htjshckj.ini %pat-to-cgi%/script.pl
winperl read the htjshckj.ini, read the htjshckj.acc and
htjshckj.in and do the job.
After the Job, the perlscript create the outputfile htjshckj.out
and close it self...
The httpd detect the closing of the winperl instance and send the
htjshckj.out back to the Web-Client.
DosPerl: If I call a /cgi-dos/script.pl file in my httpd and the .pl
extension is associated with my dosperl.pif, the httpd create
a temp-file like htjshckj.acc(ept), htjshckj.bat and htjshckj.in
First the httpd executer the htjshckj.bat which sets the
HTTP-header and then execute the dosperl.pif like
dosperl.pif %instance% %pat-to-cgi%/script.pl
dosperl get the env-vars, read the htjshckj.acc and htjshckj.in
and do the job.
After the Job, the perlscript create the outputfile htjshckj.out
and close it self...
The httpd detect the closing of the dosperl instance and send the
htjshckj.out back to the Web-Client.
Question: It is possible to use the dosperl to do the job for my httpd ?
I was programming only singel task but never I have called a
program from another program... How does it work ???
Does the httpd stop working while dosperl is running ???
I asume yes, but...
Thanks in advance
Michelle
P.S.: If this works properly, I can use whatever Interpreter I like...
perl4, perl5, tcl, php(ther is a new version for dos), q-basic,
or bash...
At 20:37 16.05.2000 GMT, you wrote
--------> This was the original Message:
>> > DJGPP comes with a port of Perl, although I remember reading something
(and
>> > correct me if I'm wrong) about it being a bugger to use with a server
>because
>> > of the way it writes text to the console.
>>
>> The solution to this is to wrap Perl with a batch file. Then
>> redirection works as you'd expect.
>
>Or you could use redir, correct? I only half-remember reading about it. It
>writes all its output to stderr (like most gnu programs), but servers expect
>the text to be written to stdout. Am I remembering correctly?
>
>AndrewJ
>
>
>
>
--------> The Reply begins not here, it is at the beginning ^
--
Don't cc: me on mailinglists, I'm subscribed, if I write there.
----------------------------------------------------------------------------
Linux rebootet man in drei Fällen:
Neuer Kernel, neue (Board-)Hardware, Stromausfall....
Aber Windows rebootet man auch in drei Fällen:
Schutzverletzung, Bluescreen, keinen Bock...
- Raw text -