Download CERN UNIX User Guide

Transcript
85 < w <= 200: formatter a2ps, landscape orientation, font size chosen so that
either w or w+1 columns fit on a line. Lines longer than w (or
w+1) are folded.
Some values of ’w’ less than 40 are used for special purposes:
w=2:
w=4:
w=5:
default, see above
formatter ascii2ps, a4 portrait orientation, 1 1 pt. font with long
lines folded, no frames, headers, or page numbers, just plain text.
formatter a2ps, a4 portrait orientation, 6.8 pt. font, supporting lines
up to 122 characters.
Some options that are available using lpr are listed below but remember that most of these are
not available when listing postscript files, see the later section on LATEX for more information
about this.
-l
-f
-s
-x
-#num
-wnum
-znum
5.6.2
for control characters and suppressing page breaks.
this option interprets the first character of a line as a standard Fortran control character.
for printing large files, (these files are softlinked to the spool and
not written there. Do not modify files sent via this method until
printing is complete).
No filtering, file printed verbatim.
Number of copies required.
Maximum page width
Maximum page length
Some Useful Unix Print Functions
Unix has a number of associated print functions which you may find useful. For a more comprehensive list and explanation of these functions the appropriate man page should be consulted. lpq and lprm are both Unix BSD commands, their equivalent in Unix System V are
lpstat and cancel respectively. The commands to apply depend on the system in use:
OSF
AIX
Ultrix
HP/UX
lpq
lprm
BSD and System V
BSD and System V
BSD
System V
Typing this command at the prompt will initiate an examination of the
spooling areas used by lpd for printing files on the printer, and report
on the status of jobs in the queue.
The print queue can be examined in its entirity, or by individual users
or by printer (-P option) or jobs - see “man pages” on page 69 for more
details.
This command can be used to remove a job or jobs from the printer’s
spool queue. As the spooling directory is protected from users, using
lprm is normally the only method of removing a job.
You can remove jobs currently active, by job number or all jobs owned
49