<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Coding a Service in DCL in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173126#M57982</link>
    <description>DCL doesn't have particularly good hooks into IP networking; hooks and interfaces that are analogous to what can be done with DECnet or with other scripting languages.&lt;BR /&gt;&lt;BR /&gt;Though you can sometimes hack something together:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wwwvms.mpp.mpg.de/pub/VMSSIG/SRC/COM/IDENTD.COM" target="_blank"&gt;http://wwwvms.mpp.mpg.de/pub/VMSSIG/SRC/COM/IDENTD.COM&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can code stuff as a DCL CGI, and go that way.  DCL can read CGI forms and such.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/277" target="_blank"&gt;http://labs.hoffmanlabs.com/node/277&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(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.)&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/old/luasocket-1.0/" target="_blank"&gt;http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/old/luasocket-1.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;And yes, perl, php, python and lua and other languages are all available for OpenVMS.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 04 May 2009 19:44:30 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2009-05-04T19:44:30Z</dc:date>
    <item>
      <title>Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173122#M57978</link>
      <description>I need to create a network Service that accepts a single line and returns one or a few lines.&lt;BR /&gt;&lt;BR /&gt;I've been searching high &amp;amp; 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.&lt;BR /&gt;&lt;BR /&gt;I like to write it in DCL, but am open to other scripting languages.&lt;BR /&gt;&lt;BR /&gt;Can anyone point me to some examples?  TIA</description>
      <pubDate>Mon, 04 May 2009 17:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173122#M57978</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2009-05-04T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173123#M57979</link>
      <description>Perhaps something in the old DECnet phase IV manuals?&lt;BR /&gt;&lt;BR /&gt;This works on phase IV:&lt;BR /&gt;&lt;BR /&gt;On your remote node, create command file SENDTIME.COM&lt;BR /&gt;&lt;BR /&gt;$ OPEN/READ/WRITE NET SYS$NET&lt;BR /&gt;$ READ NET NOTHING&lt;BR /&gt;$ WRITE NET F$TIME ()&lt;BR /&gt;$ CLOSE NET&lt;BR /&gt;$ EXIT 1&lt;BR /&gt;&lt;BR /&gt;Then, on the remote node:&lt;BR /&gt;&lt;BR /&gt;$ MCR NCP SET OBJECT SENDTIME NUMBER 0 FILE &lt;SENDTIME filespec=""&gt;&lt;BR /&gt;&lt;BR /&gt;Now, on the local node, type:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/READ/WRITE NET &lt;REMOTENODENAME&gt;::"TASK=SENDTIME"&lt;BR /&gt;$ WRITE NET " "&lt;BR /&gt;$ READ NET RTIME&lt;BR /&gt;$ CLOSE NET&lt;BR /&gt;$ WRITE SYS$OUTPUT "Time on remote system is ", RTIME&lt;BR /&gt;&lt;BR /&gt;&lt;/REMOTENODENAME&gt;&lt;/SENDTIME&gt;</description>
      <pubDate>Mon, 04 May 2009 19:08:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173123#M57979</guid>
      <dc:creator>RBrown_1</dc:creator>
      <dc:date>2009-05-04T19:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173124#M57980</link>
      <description>&lt;!--!*#--&gt;Define "network Service".&lt;BR /&gt;&lt;BR /&gt;What kind of network?  DECnet?  IP?</description>
      <pubDate>Mon, 04 May 2009 19:18:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173124#M57980</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-05-04T19:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173125#M57981</link>
      <description>Sorry - forgot about DECnet services.&lt;BR /&gt;&lt;BR /&gt;My project must be a TCPIP service.</description>
      <pubDate>Mon, 04 May 2009 19:26:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173125#M57981</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2009-05-04T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173126#M57982</link>
      <description>DCL doesn't have particularly good hooks into IP networking; hooks and interfaces that are analogous to what can be done with DECnet or with other scripting languages.&lt;BR /&gt;&lt;BR /&gt;Though you can sometimes hack something together:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wwwvms.mpp.mpg.de/pub/VMSSIG/SRC/COM/IDENTD.COM" target="_blank"&gt;http://wwwvms.mpp.mpg.de/pub/VMSSIG/SRC/COM/IDENTD.COM&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;You can code stuff as a DCL CGI, and go that way.  DCL can read CGI forms and such.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://labs.hoffmanlabs.com/node/277" target="_blank"&gt;http://labs.hoffmanlabs.com/node/277&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(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.)&lt;BR /&gt;&lt;BR /&gt;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:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/old/luasocket-1.0/" target="_blank"&gt;http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/old/luasocket-1.0/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;And yes, perl, php, python and lua and other languages are all available for OpenVMS.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 May 2009 19:44:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173126#M57982</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2009-05-04T19:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173127#M57983</link>
      <description>I once implemented a simple identd service, sort of as a honeypot, when I found my systems were getting regularly probed.&lt;BR /&gt;&lt;BR /&gt;I don't recall exactly how I set up the service, although that should be fairly straightforward.  &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 04 May 2009 20:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173127#M57983</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2009-05-04T20:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173128#M57984</link>
      <description>Nuts, I posted a bum version of the file.  Here's the correct one.  There are several errors in the previous one (e.g., nonexistent error handler, etc.)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 04 May 2009 20:41:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173128#M57984</guid>
      <dc:creator>Aaron Sakovich</dc:creator>
      <dc:date>2009-05-04T20:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Coding a Service in DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173129#M57985</link>
      <description>Hoff: thanks for the leads.  Will investigate.&lt;BR /&gt;&lt;BR /&gt;Aaron: thanks for the script.  This was exactly what I needed to get started.</description>
      <pubDate>Mon, 04 May 2009 22:16:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/coding-a-service-in-dcl/m-p/5173129#M57985</guid>
      <dc:creator>Jack Trachtman</dc:creator>
      <dc:date>2009-05-04T22:16:14Z</dc:date>
    </item>
  </channel>
</rss>

