The CAPTURE and NPRINT utilities

Using NPRINT

NPRINT is used to send a file to a printer. This would include plain text (ASCII) files such as AUTOEXEC.BAT and any application software output already formatted for a printer.

Unlike CAPTURE, where options may be entered in any order, NPRINT requires that the filename be specified immediately after you type NPRINT according to the following format:

NPRINT filename [P=printername | Q=queuename] [/option...]

For example, to print file JANUARY.RPT in the current directory to printer P_1 with no banner or form feed, type

NPRINT JANUARY.RPT P=P_1 NB NFF

Multiple filenames can be entered in the same command by separating them with commas.

NPRINT JANUARY.RPT,FEBRUARY.RPT P=P_1 NB NFF

The following list illustrates the syntax of typical NPRINT commands:

In the following specification, replace filename with the name of the file you want to print. Include wildcard characters, drive letters, and directory paths if necessary.

Replace option with any of the options listed. You do not need to use options if a default print job configuration specifies a printer or print queue.

ALL
All. Used after the /? option, it displays all online help screens.

B=name
Banner. Indicates what will appear in the lower half of the banner page. Limit = 12 characters. Replace name with any word or phrase up to 12 characters long. To allow spaces in a banner name, enclose the name in quotation marks (for example, ``ON THE GO''). Default: The print job file name.

C=number
Copies. Specifies the number of copies. NPRINT allows up to 65,000 copies. The default is 1.

DEL
Delete. Automatically deletes the file after it is printed. The default is not to delete the file of files.

D
Details. Lists the printing parameters for the job to be printed. It also indicates whether a print job configuration was used.

F=name or number
Form. Specifies the form that the printer will use. (You must define forms using PRINTDEF or NetWare Administrator before users can use form names.) Default: 0.

FF
Form Feed. Enables form feed after your print job has been printed. Form Feed enabled means that the printer starts printing the next job at the top of the next sheet of paper. However, if an application automatically enables form feed at the end of a file, adding this option causes an extra blank page to be fed through. Default: Form Feed enabled.

/? or /H
Help. Displays context-sensitive online help.

HOLD
Hold. Allows you to send a print job to a queue without having it print. To release the hold on the job, you can use either PCONSOLE or NetWare Administrator.

J=name
Print job configuration. Indicates the print job configuration to use; does not require other options except to override print job configuration options. If no job configuration is specified and a default job configuration exists, it will be used. (Use the D option to see what job configuration is being used.) If no default print job is used, you will need to specify either a printer or queue in the command line. You can also use this option to specify the context in which to look for a print job configuration if it is outside the current search path by identifying the container or user owning the configuration. (See ``Printing with print job configurations in a different context'' for a discussion of this option as it pertains to CAPTURE, and modify the command syntax accordingly.)

NAM=text
Name. Indicates what will appear in the upper half of the banner page. Limit = 12 characters. Default: The username you used to log in.

NB
No Banner. Suppresses banner page.

NFF
No Form Feed. Suppresses form feed at the end of a print job.

NNOTI
No Notify. Specifies that the user not get a message after the print job prints. Do not confuse this option with the notification option in PCONSOLE that informs designated users when the printer is having problems. Default: NOTI enabled.

NT
No Tabs. Specifies that tabs are not converted to spaces in a print job. This is also called byte stream. This option ensures that all the tab characters in your print job arrive at the printer unchanged. Use this option for most network printing situations, especially when printing graphics. Default is NT (byte stream).

Q=name
Print Queue. Indicates to which print queue the print job should be sent; you may set a default in a print job configuration.

P=name
Printer. Indicates to which printer the print job should be sent; you may specify a default in a print job configuration.

S=name
Server. Specifies the NetWare server if you want the print job sent to a bindery print queue. Not used for Directory Services print queues. Default = current tree or server.

T=number
Tabs. Specifies the number of spaces to be substituted for each tab in a print job (default=8). Specify NT (No tabs) for byte stream print jobs.

/VER
Version. Displays version information for this utility. Also lists the names and version number of all files required to run this utility.

© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999