[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 System User's Guide: Communications and Networks

Printing Files

This section provides the following information:

Printing to a Remote System

If you have a local printer attached to your host, then this section refers to printing to a remote printer. If you have no local printer, then this section refers to printing to a nondefault remote printer. You can either use the enq command or the System Management Interface Tool (SMIT) to complete this task.

Note: This section explains how to print to a remote host at the simplest level possible. For more information and ideas about remote printing, please read about the enq command.

Prerequisites

  1. Your host name must appear in the /etc/hosts.lpd file of the remote host.
    Note: The queuing system does not support multibyte host names.

    To implement changes to the /etc/hosts.lpd file without restarting the system, use the System Resource Controller (SRC) refresh command.

  2. You must be able to determine the queue name and the remote printer name in your local /usr/lib/lpd/qconfig file.

To Enqueue a Job Using the enq Command

  1. Find the appropriate queue name and remote device name. The queue name will usually begin with the letters rp followed by a numeral or set of numerals. The remote printer name will usually begin with the letters drp followed by a numeral or set of numerals.
  2. Enter the following command:
    enq -P QueueName:DeviceName FileName
    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 wish to print.

To Enqueue a Job Using the System Management Interface Tool (SMIT)

  1. Enter the following command:
    smit
  2. Select the Spooler, and start a print job menu.
  3. Select the File to Print option, and enter the name of the file you wish to print.
  4. Select the Print Queue option, and select the name of the remote printer to which you wish to print. You are now ready to print to a remote printer.

Printing from a Remote System

Occasionally, you may need to print a file located on a remote host. The location of the printout depends upon what remote printers are available to the remote host.

Note: This section explains how to print to a remote host at the simplest level possible. For more information and ideas about remote printing, please read about the enq command.

Prerequisites

  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.

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 will usually begin with the letters rp followed by a numeral or set of numerals. The remote printer name will usually begin with the letters drp followed by a numeral or set of numerals.
  3. Enter the following command:
    enq -P QueueName:DeviceName FileName
    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. Terminate the connection to the remote host by pressing the Ctrl-D sequence or entering quit .

Related Information

The enq command, rlogin command, telnet command.

The refresh command.


[ Previous | Next | Contents | Glossary | Home | Search ]