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.

  1. You must be able to log in to the remote system using the rlogin or telnet command.
  2. 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:

  1. Log in to the remote system using the rlogin or telnet command.
  2. Find the appropriate queue name and remote device name. The queue name usually begins with the letters rp followed by a numeral or set of numerals. The remote printer name usually begins with the letters drp followed by a numeral or set of numerals.
  3. 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.

  4. End the connection to the remote host by pressing the Ctrl-D sequence or by typing quit.