Книга: Linux Network Administrator Guide, Second Edition

Printing to a NetWare Print Queue

The ncpfs package contains a small utility called nprint that sends print jobs across an NCP connection to a NetWare print queue. This command creates the connection if it doesn't currently exist and uses the ~/.nwclient file that we described earlier to hide the username and password from prying eyes. The command-line arguments used to manage the login process are the same as those used by the ncpmount, so we won't go through those again here. We will cover the most important command-line options in our examples; refer to the nprint(1) manual page for details.

The only required option for nprint is the name of the file to print. If the filename specified is - or if no filename is specified at all, nprint will accept the print job from stdin. The most important nprint options specify the fileserver and print queue to which you wish the job to be sent. Table 15.4 lists the most important options.

Table 15.4: nprint Command-Line Options

Option Description
- S server_name The name of the NetWare fileserver supporting the print queue to which you wish to print. Usually it is convenient for the server to have an entry in ~/.nwclient. This option is mandatory.
- q queue_name The print queue to which to send the print job. This option is mandatory.
- d job_description Text that will appear in the print console utility when displaying the list of queued jobs.
- l lines The number of lines per printed page. This defaults to 66.
- r columns The number of columns per printed page. This defaults to 80.
- c copies The number of copies of the job that will be printed. The default is 1.

A simple example using nprint would look like:

$ nprint -S REDS01 -q PSLASER -c 2 /home/matt/ethylene.ps

This command would print two copies of the file /home/matt/ethylene.ps to the printer named PSLASER on the REDS01 fileserver using a username and password obtained from the ~/.nwclient file.

Оглавление книги

Оглавление статьи/книги

Генерация: 1.777. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз