TELNET: Output to a "serial type" device


Question:

Can I do output to a "Serial Type" Device?

Solution:

By using Telnet to create an NTA device, output can then be sent to it.

Instructions for creating an NTA device is listed in "Further Info" below:

Further Info:

CREATING AND USING NTA DEVICES



If you need to create a "device" that has a standard terminal name format, you can use the /LOGICAL flag:

$ TELNET/CREATE host [port]/LOGICAL=NTA6000

You'll get a logical that is NTA6000.

You can then use it when specifying the "output" device by using:

$ COPY file NTA6000:

If you want to "reserve" some device names for the purposes of using them for outgoing use, then use a different device name (such as YYAn).

To make an NTA device created via TELNET/CREATE "stick" around, do:

$ TELNET/CREATE/LOGICAL=TELNET_NTA <host> <port>

$ SET TERMINAL/NOHANGUP/PERMANENT TELNET_NTA

$ DEALLOCATE TELNET_NTA

This does not disconnect it. This prevents it from hanging up.

The NTA device will stay around until one does:

$ SET TERMINAL/HANGUP/PERMANENT TELNET_NTA

Note that privileges are required to change the HANGUP characteristics.

If you need to make the logical device names available system-wide, you can do so by doing the following:

$ DEFINE/SYSTEM NTA6000 'F$TRNLNM("NTA6000")'