9.C: Postscript Documents | 9: Printing Files | 9.A: Print Queues |
A "text" document contains letters, numbers and punctuation, that is, no control character or special printer coding. Text documents can be printed on any printer (although you may need a special command to do it on a PostScript printer).
An example of a text document is your program in the file
area.f
. To start, use the more
command to
make sure the file's still OK:
> cd development/prog
> more area.f
lpr
followed by the filename
(Alternatively, use the lp
command):
> lpr area.f
> lp area.f
-P
option followed by the
printer name for lpr
, or -d
followed by the
printer name for lp
:
> lpr -Pps2 area.f
> lp -Dps2 area.f
> enscript area.f
To print two logical pages onto one physical page, you give the -2 option. In this case it's probably best to have the two pages appear as two "rows" on the page (as opposed to columns):
> enscript -2r README.first
-2r gives you printout in landscape mode. Landscape
mode is more readable when printing two logical pages to a
physical page.
If you do not want the output to go to the default printer, use the
-P
option, just as you would for lpq
or
lpr
.
If you wish to send the output to a file first (to view with
ghostview or include with other postscript files), use the option
-p
followed by the filename:
> enscript -2r -p readme.ps README.first
As we have already said, you can check if the printer queue is up,
and find out the names of the printer queues, with the line
printer queue command:
> lpq
It's a good idea to issue a lpq
command after you
submit your job, in order to see how it's coming along. However, if
your job is small and if the printer is not busy, it may be out of the
queue (and in the printer's memory) before you get a chance to finish
entering your command.
If your job is not in the queue, in the printer, or printed out,
look at some other network printer for it. If it is not there, do
not print it out again. (Either the printer is not functioning, or
it has gone to another printer; re-entering the command can only make
matters worse.)
9.C:
Postscript Documents
9:
Printing Files
9.A:
Print Queues
Comments and questions to
CP-unix@physics.orst.edu.