www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/17/05:21:17

Message-Id: <3.0.6.16.20000517095832.401f5330@mail.cybercable.fr>
Organization: Michelle's Internet Service
X-Link: http://www.michelle-is.com/index.htm
X-Moto: Micr0$oft = What do you want to crash today?
X-Note: Sending S P A M is a violation of german, french and US law and will at least trigger a complaint at your provider's postmaster.
X-Sender: starone AT mail DOT cybercable DOT fr
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (16)
Date: Wed, 17 May 2000 09:58:32 +0100
To: djgpp AT delorie DOT com
From: Michelle Konzack <starone AT cybercable DOT fr>
Subject: Re: Interpreter for Perl, etc...
In-Reply-To: <6kiU4.54117$55.1104022@news2.rdc1.on.home.com>
References: <3 DOT 0 DOT 6 DOT 16 DOT 20000511012834 DOT 3f57aeac AT mail DOT cybercable DOT fr>
<lkzS4.20338$55 DOT 438359 AT news2 DOT rdc1 DOT on DOT home DOT com>
<200005111957 DOT PAA13566 AT indy DOT delorie DOT com>
Mime-Version: 1.0
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id EAA28410
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019