1753519 Members
5722 Online
108795 Solutions
New Discussion юеВ

Re: DCL & CGI

 
Manny DeAssis
Frequent Advisor

DCL & CGI

Where can I obtain information on how to incorporate DCL procedures into usable CGI scripts? I want to be able to execute DCL procedures/commands via Apache (CSWS) on OVMS. (ie: '$ show system' -or- '$ show process' , etc)
7 REPLIES 7
Jeremy Begg
Trusted Contributor

Re: DCL & CGI

Have a look at Alan Winston's book, "OpenVMS with Apache, OSU and WASD" (Digital Press, 2003, ISBN 1-55558-264-8). Lots of useful information there about webserving on OpenVMS.

Is there any particular reason you chose Apache? If not, have a look at WASD - a webserver written specifically for OpenVMS with great support and lots of unique features including full support for DCL as CGI and higher performance than all other VMS webservers.
http://wasd.vsm.com.au/

Regards,
Jeremy Begg
Willem Grooters
Honored Contributor

Re: DCL & CGI

CGI is typically just a script executed by the webserver, and it''s written in a command language that the system understands. On OpenVMS, that is DCL.

So actually: a CGI procedure on VMS IS a DCL procedure. You have to take care of a few things though. A CGI procededure typically runs under the webserver user. For CSWS that is APACHE$WWW. This is a 'normal' user without privileges, which complicates things a bit. But $SHOW SYSTEM would not be a problem
Willem Grooters
OpenVMS Developer & System Manager
Mario Dhaenens
Frequent Advisor

Re: DCL & CGI

Hi,

I have uploaded an example of a CGI script that can be used on VMS.


/Toine
Hoff
Honored Contributor

Re: DCL & CGI

DCL works.

Here's probably the simplest example:

http://labs.hoffmanlabs.com/node/277

I've also included a chapter on this topic in the second edition of the Writing Real Programs in DCL Book. That book is out of print, though copies do show up occasionally. ISBN 1-55558-191-9.

For non-trivial displays and operations and sequences, DCL is comparatively more involved here than using php or Perl or other languages. With DCL, you're rolling your own CGI environment and tools, where other environments have mechanisms and libraries and assists available to programmers.

http://labs.hoffmanlabs.com/node/928

Other approaches for remote data collection here include SNMP (installed via SMH or such) and remote monitoring tools.

http://labs.hoffmanlabs.com/node/1117
Manny DeAssis
Frequent Advisor

Re: DCL & CGI

Thanks guys. This information is helpful and appears to be a good start. Any more questions and I know who to turn to.
Manny DeAssis
Frequent Advisor

Re: DCL & CGI

.
Peter Weaver_1
Frequent Advisor

Re: DCL & CGI

I'm a bit late to the party since I don't get out here much, but you might want to check out http://groups.google.com/group/comp.os.vms/browse_frm/thread/f753a86df523d7d8# - the thread is titled "Stupid DCL Tricks revisited - Bar and Pie Charts in DCL"