www.digitalmars.com         C & C++   DMDScript  

DMDScript - DMDScript and CGI?

reply ric getorbital.com writes:
Hello,  I'm looking to use Javascript on my webserver via CGI.  That means
access to stdin, stdout and the environment at the very least.

Are stdin, stdout and the environment available to DMDScript?  If so, how?  (I
see from the sieve.ds that there is a "println", so one down and two to go.)

-- Ric Gagliardi
Nov 10 2002
parent reply "Walter" <walter digitalmars.com> writes:
There are two versions of DMDScript. One is a console version, that you can
do println's with. The other uses a COM interface. Which is more appropriate
to your task?

(stdin and environment support could be added to the console version with
little difficulty.)

<ric getorbital.com> wrote in message
news:aqn6vp$2bq7$1 digitaldaemon.com...
 Hello,  I'm looking to use Javascript on my webserver via CGI.  That means
 access to stdin, stdout and the environment at the very least.

 Are stdin, stdout and the environment available to DMDScript?  If so, how?

 see from the sieve.ds that there is a "println", so one down and two to

 -- Ric Gagliardi

Nov 11 2002
parent ric getorbital.com writes:
I think the console version (with stdin, stdout and environment) would suffice.
I am not planning on using it with IIS.  More likely Apache or Xitami.

-- Ric

In article <aqotl7$134f$1 digitaldaemon.com>, Walter says...
There are two versions of DMDScript. One is a console version, that you can
do println's with. The other uses a COM interface. Which is more appropriate
to your task?

(stdin and environment support could be added to the console version with
little difficulty.)

<ric getorbital.com> wrote in message
news:aqn6vp$2bq7$1 digitaldaemon.com...
 Hello,  I'm looking to use Javascript on my webserver via CGI.  That means
 access to stdin, stdout and the environment at the very least.

 Are stdin, stdout and the environment available to DMDScript?  If so, how?

 see from the sieve.ds that there is a "println", so one down and two to

 -- Ric Gagliardi


Nov 11 2002