Printing files from a remote system
Occasionally, you might need to print a file that is located on a remote host. The location of the printout depends upon which remote printers are available to the remote host.
- You must be able to log in to the remote system using the rlogin or telnet command.
- You must have read permission for the remote file that you wish to print on your local printer.
Note: This procedure explains how to print to a remote host at the simplest level possible. For more information and ideas about remote printing, read about the enq command.
To print from a remote system:
- Log in to the remote system using the rlogin or telnet command.
- Find the appropriate queue name and remote device name. The queue
name usually begins with the letters
rpfollowed by a numeral or set of numerals. The remote printer name usually begins with the letters
drpfollowed by a numeral or set of numerals.
- Type the following command:
enq -P QueueName:PrinterName FileName
where QueueName is the name of the queue (such as
rp1), and PrinterName is the name of the printer (such as
drp1) as found in the /usr/lib/lpd/qconfig file. Do not omit the : (colon) between the QueueName and the PrinterName. FileName is the name of the file that you want to print.
- End the connection to the remote host by pressing the Ctrl-D sequence or by typing quit.