[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mumps-l
Subject:    Re: GTM/VMS/CGI/STDIN
From:       Lynn Lantz <lantz1 () ix ! netcom ! com>
Date:       1997-04-30 13:47:41
[Download RAW message or body]


Paul Perrin wrote:
>
> STDIN is 'unix' or 'c' speak for your principal input device - ie it
> will be a terminal for online jobs, a parameter file for batch jobs, or
> a 'pipe' for some other types of jobs.
>
> What UNIX-bods call 'STDIN', VMSers call 'sys$input' (and STDOUT
> approximates to 'sys$output') and Msters call $P (Mumpsers call it device
> 0)
>
> AIUI GTM compiles to native VMS .EXE (if any one has info on GTM, I'd
> like to know more). So *you* dont have to worry about it, sys$input,
> sys$command, sys$error and sys$output, will automatically be setup by
> the webserver when it calls your .EXE
>
> So in summary (if I am correct about GTM producing .EXE's) then you have
> no extra work to do. STDIN is opened for you when your prog starts and
> closed for you when it terminates -- just do a normal 'read' and it
> should be coming from STDIN (sys$input).
>
> Accessing anything passed by the 'post' (and other 'environment
> variables') will be dependant on your webserver (I dunno anything about
> the servers available for VMS - altho' CGI is 'farily' standard).
>
> Regards
>
> Paul Perrin /)/+)
> -------------------------------------------
>         Putting Data on the Web?
>        Make it Fast - Make it Easy
>  Check out M-Script & CGI+M for Windows.
>         Real Live in action at:-
>          http://www.admatic.com
> Fresh, Fast, Free -- Instant Classified Ads
> -------------------------------------------
Paul, yes you can create object code and executables with GTM.  See
http://www.software.greystone.com for their site and database
information.  It is a great M implementation and is the ONLY vendor that
allows object code and executables (standard VMS linker).  I've worked
with it for years and I highly recommend it.  They also have a DAL
(database access library) so you can make calls directly to/from the
database using C or any language.  I'm using Process Purveyor Web Server
software and am going to try and write direct api calls (isapi like)
from the server to the database to bypass CGI, etc.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic