Ref: 21770001
Title: Printing Data from a Remote CS to a Printer on an NCS/AT Port
Date:  3/11/91

Copyright 3Com Corporation, 1991.  All rights reserved.

The NCS/AT "remote" command is used to access a 3Com Communications
Server on the network.  The syntax is simply

    remote [address]

where [address] represents the XNS or IP address of the Comm Server you want
to access.  The problem in printing information on the NCS/AT is that, once
you have issued a "remote" and are communicating with the Comm Server, you are
no longer at an NCS/AT prompt and cannot pipe and redirect output to a file
or to the printer.  The I/O redirection for both input and output must be done
when you type the "remote" command at the NCS/AT.  The syntax would be

    remote [address] < [filename] | print

For example, if you want to know the software/firmware, global, and
asynchronous port parameters for port !1 on the Comm Server with address
129.001.001.020, the following steps will provide that information.

1.  Using the vi text editor, create a file containing these lines:

       sh vers
       sh glpar
       sh (!1) dp

2.  Input this file to the "remote" command using the Xenix input redirection
character "<".  Pipe output to the default printer using the "|" character.
The exact syntax in this example would be

       remote 129.001.001.020 < [filename] | print

where [filename] is the vi-created file that contains the sh vers, sh glpar,
and sh (!1) dp commands.

As another option, you could redirect output to a file, and then print at a
later time, as in:

       remote 129.001.001.020 < [input filename] > [output filename]
       print -d[printer] [output filename]

The "greater than" sign preceding the output filename instructs Xenix to
send output to the designated filename rather that to the stdlist (which by
default is the terminal screen).

