Printing a File using telnet or rsh
The following section shows examples of commands you can use to print a file on a
printer that is connected to Port 1 on the PortServer:
Using telnet
pr myfile | telnet ncx 2001
Using rsh
pr myfile | rsh ncx 1
Troubleshooting
• If you are not getting the proper line feed after a carriage return, turn on onlcr
(converts Carriage Return to Carriage Return & Line Feed). The command is set
line onlcr=on.
• A tab (ASCII character 9) can be converted to eight spaces. Use set line
otab=on if you want tabs converted.
• Some versions of telnet can cut off the end of print jobs.
Note: If telnet cuts off print jobs, try rsh. (rsh is the name of the command in BSD
Unix. On some systems, the command is called rcmd (for example, SCO
Unix) or remsh (for example, HP-UX) to eliminate confusion with the
restricted shell called rsh.
Page 164
Configuring Printer Connections
90030500B