Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: prm Up: Printer Previous: prd

Subsections



pri

Print ASCII or POSTSCRIPT files.

Synopsis

pri [-m mode] [-p paper] [-P printer] [-t type] [-w] [file1 [file2 ...]]

Description

pri prints ASCII or POSTSCRIPT files on a POSTSCRIPT printer with a variety of formatting options. If no files are specified the input is taken from stdin.

If the file is in standard POSTSCRIPT form in which the first line begins with %! it will be sent to the POSTSCRIPT printer without conversion. Otherwise, it will be converted to POSTSCRIPT using the lwf_a (p[*]) utility. This behaviour can be explicitly overridden with the -t option.

If no printer is specified via the -P option, the printer is that returned by the prd (p[*]) command.

Options

A space is allowed between the option letter and its value (if any).

-mmode
Print mode for ASCII files (doesn't apply to POSTSCRIPT):

p Portrait mode.
l Landscape mode.
72 Two-column portrait mode for files with lines not exceeding 72 characters in length.
80 Two-column landscape mode for files with lines not exceeding 80 characters in length.

-ppaper
Paper type (doesn't apply to POSTSCRIPT):

3 or A3 Metric A3
4 or A3 Metric A4
l or letter Letter

-Pprinter
Printer to use instead of the default (see prd (p[*])). pri recognizes a ghostview pseudo-printer which may be used to ``print'' the file to a ghostview POSTSCRIPT previewer on a workstation.

-ttype
Input file type.

txt ASCII text file.
ps POSTSCRIPT file.

-w
Wait for the print queue to empty before submitting each job. pri checks the state of the queue once a minute, and will wait for up to one hour before submitting the job.

All other options are passed to lwf_a (p[*]).

Resources

Examples

The command:

   pri -m 80 aips.h

would print aips.h in two-column landscape format.

See also

getrc (p[*]), query AIPS++ resource database.
lwf_a (p[*]), POSTSCRIPT filter.
pra (p[*]), print AIPS++ class implementation files.
prd (p[*]), report the default printer.
prm (p[*]), delete entries from the printer queue.
prq (p[*]), list contents of the default printer queue.

Author

Original: 1992/03/04 by Mark Calabretta, ATNF.


next up previous contents index
Next: prm Up: Printer Previous: prd   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15