- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Coding a Service in DCL
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 10:56 AM
тАО05-04-2009 10:56 AM
I've been searching high & low through the VMS forums, tried using Google, scanned the manuals, and checked out dcl.openvms.org, but can't seem to find any examples.
I like to write it in DCL, but am open to other scripting languages.
Can anyone point me to some examples? TIA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 12:08 PM
тАО05-04-2009 12:08 PM
Re: Coding a Service in DCL
This works on phase IV:
On your remote node, create command file SENDTIME.COM
$ OPEN/READ/WRITE NET SYS$NET
$ READ NET NOTHING
$ WRITE NET F$TIME ()
$ CLOSE NET
$ EXIT 1
Then, on the remote node:
$ MCR NCP SET OBJECT SENDTIME NUMBER 0 FILE
Now, on the local node, type:
$ OPEN/READ/WRITE NET
$ WRITE NET " "
$ READ NET RTIME
$ CLOSE NET
$ WRITE SYS$OUTPUT "Time on remote system is ", RTIME
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 12:18 PM
тАО05-04-2009 12:18 PM
Re: Coding a Service in DCL
What kind of network? DECnet? IP?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 12:26 PM
тАО05-04-2009 12:26 PM
Re: Coding a Service in DCL
My project must be a TCPIP service.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 12:44 PM
тАО05-04-2009 12:44 PM
Re: Coding a Service in DCL
Though you can sometimes hack something together:
http://wwwvms.mpp.mpg.de/pub/VMSSIG/SRC/COM/IDENTD.COM
You can code stuff as a DCL CGI, and go that way. DCL can read CGI forms and such.
http://labs.hoffmanlabs.com/node/277
(I had a chapter on this topic in the DCL book, but re-reading the generated HTML makes me want to rework the DCL shown in that chapter.)
The usual approach here is php or perl or python or lua or such; something with a CGI library and the ability to encode and decode URLs. (Yes, much of this can be done in DCL.) Most scripting languages have an IP socket library. (DCL is an exception here.) Here's a discussion of one for Lua:
http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/old/luasocket-1.0/
Examples? Google. Or look in TCPIP$EXAMPLES: or such for C code and pieces. Or look around at most any perl or php or python or lua book, or any of the plentitude of language-associated web sites around.
And yes, perl, php, python and lua and other languages are all available for OpenVMS.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 01:38 PM
тАО05-04-2009 01:38 PM
Re: Coding a Service in DCL
I don't recall exactly how I set up the service, although that should be fairly straightforward.
I've attached the .com file (as a .txt file) that actually implements the service. You can see how it gets info on the inbound request, sends information back, and logs the request.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 01:41 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-04-2009 03:16 PM
тАО05-04-2009 03:16 PM
Re: Coding a Service in DCL
Aaron: thanks for the script. This was exactly what I needed to get started.