LP(1) General Commands Manual LP(1)NAME
lp, lpd - copy a file to the line printer
SYNOPSIS
lp [file ...]
DESCRIPTION
Each file argument to lp is send to the line printer to be printed. Standard input is read and printed if there are no arguments. Lp exe-
cutes /usr/lib/lpd with each file as input. Lpd puts the file in /usr/spool/lpd and starts printing the jobs on /dev/lp unless another lpd
is already running. If lpd finds any character in the input that it doesn't know how to handle then it will print the rest of the file
without any special treatment. This also means that no formfeed is sent after the file has been printed to force out the page. Lpd simply
assumes that you know what you are doing. (dumb, eh?)
Note: Don't do anything with a file until it is printed, lpd only makes a copy of a file in the spool directory when it is not world read-
able. If it can be read then it is printed directly.
FILES
/usr/spool/lpd/jobXXXXX
Information about a job.
/usr/spool/lpd/tmpXXXXX
Associated file to be printed.
/etc/termcap The 'lp' entry describes the printer by the "li#" and "co#" fields. By default 66 lines (li#66), and 80 columns
(co#80).
SEE ALSO lp(4), termcap(5), termcap(7).
BUGS
Not spooling a world readable file may not be such a smart idea.
A formfeed should be printed and the printer reset after a job full of escape codes, but this may cost paper.
No banner page.
AUTHOR
Kees J. Bot (kjb@cs.vu.nl)
LP(1)
Check Out this Related Man Page
lp(1) General Commands Manual lp(1)Name
lp - send requests to an LP line printer
Syntax
lp [-c] [-d dest] [-n number] [-] [files]
Description
The command arranges for the named files and associated information (collectively called a request) to be printed by a line printer. If no
file names are mentioned, the standard input is assumed. When a file name is designated by a minus sign (-) it stands for the standard
input and may be supplied on the command line in conjunction with named files. The order in which files appear is the same order in which
they are printed.
This command exists for X/OPEN compatibility.
Options
The following options to may appear in any order and may be intermixed with file names:
-c Makes copies of the files to be printed immediately when is invoked. Normally, files are not copied, but are linked whenever
possible. If the -c option is not given, then the user should be careful not to remove any of the files before the request has
been printed in its entirety. It should also be noted that without the -c option, any changes made to the named files after
the request is made but before it is printed are reflected in the printed output.
-d dest Chooses dest as the printer that is to do the printing. If dest is a printer, then the request is printed on that specific
printer. By default, dest is taken from the environment variable PRINTER if it is set. Otherwise, a default destination, lp,
is used.
-n number Prints number copies (default of 1) of the output.
Files
/etc/passwd personal identification
/etc/printcap printer capabilities data base
/usr/lib/lpd* line printer daemons
/usr/spool/* directories used for spooling
/usr/spool/*/cf* daemon control files
/usr/spool/*/df* data files specified in cf files
/usr/spool/*/tf* temporary copies of cf files
See Alsolpq(1), lpr(1), lprm(1), pr(1), symlink(2), printcap(2), lpc(8), lpd(8)lp(1)
I'm trying to modify the /usr/lib/lp/model/netstandard file to generate a header for all the print jobs that are sent, but there is no formfeed defined so the the job prints right after the header with no page break. What is the sequence I need in order to generate a formfeed? Or, do you have... (4 Replies)
Hi,
I've a text file that has a formfeed character at the beginning.
I want to get rid of this formfeed character using sed.
But I don't know how to specify the formfeed character.
I've tried \014 (octal for formfeed), \f but still not works.
Regards,
Johnny (5 Replies)
I am using digital Unix and lpd. I have HP 4200n LaserJet TCP printer, but when I use lpr command, it always print duplex.
I can turn off duplex feature at the panel of the printer, but then other Windows computer cannot print duplex. How can I set up /etc/printcap file so that it will be... (2 Replies)
i am running an .sql script in sqlplus which is spooling in a file. but when i am opening the file using vi editor it is showing ^L in front of 1st,2nd and last line.
when i am opening the file with cat this problem is not there.
how to solve this problem?
this above mentioned file is the input... (1 Reply)
I am attempting to setup an IP based printer in a SCO environment. It is a cognitive printer. I attempted to add it via the HP interface but I could not get anything sent from the spooler to the printer in SCO?
My questions is or are should this be setup as a local or remote printer? When I... (6 Replies)
Hi people please help i need to change the default printer on a usr name and i cant evin get in to the usr file EG do i type cd/ usr/ ims1 please i need help (2 Replies)
When I try to create first print queue in this system with the command line argument, find the output also...
# /usr/lib/lpd/pio/etc/piomkjetd mkpq_jetdirect -p 'generic' -D pcl -q 'AR06_Workcenter_32' -h 'AR06_Workcenter_32' -x '9100'
0782-606 /usr/lib/lpd/pio/etc/piomgpdev: Error 'A file or... (1 Reply)
Hi There
On my sco 6 box i run a dayend procedure , i get the following error , it is not causing any problems (not that i can see) more annoying really.
error - /usr/lib/lp/lpd/lp: cannot rename /usr/spool/lpd/hw15inv(printer name)/cfA992hostname
I can see that it wants to rename a... (1 Reply)
Hi,
Im wondering, if I do a restart of my lpd service, will it clear the print queue? Or will the file in queue will still be there after the restart?
Thank you (1 Reply)
So I've got this asc file that someone sent me for setting up a Zebra printer on AIX.
When I use smit or the command line I get this error when I try to setup the printer up:
File /usr/lib/lpd/pio/predef/master does not exist.
The master file is there. This only happens when I setup a... (2 Replies)
Hi,
I experience an issue with printer queue configuration and when I tried to verify files of the printer and lpd installable software product, I get these messages:
#lppchk -c
lppchk: 0504-208 Size of /usr/lib/lpd/digest is 44634,
expected value was 44874.
lppchk: 0504-208 Size of... (8 Replies)
We have several HP FX-890 printers set up on our UNIX server to print invoices. All of the printers should be set up the same way (i.e. same margins, same paper height, etc). Our printer named invoice4 is now printing like the margins are shorter than the other printers. By that I mean it will... (9 Replies)
Guy's
I'm trying to create script to execute some critical commands in AIX
like the below ...
stopsrc -s qdaemon
stopsrc -s sshd
stopsrc -s lpd
stopsrc -s nfsd
I want between each command to ask me like this
" are you sure to stop qdaemon "
" are you sure to stop ssh"
" are... (3 Replies)
Hi,
I have data like below.
SID=D6EB96CC0
HID=9C246D6
CSource=xya
Cappe=1
Versionc=3670
MAR1=STL
MARS2=STL
REQ_BUFFER_ENCODING=UTF-8
REQ_BUFFER_ORIG_ENCODING=UTF-8
RESP_BODY_ENCODING=UTF-8
CON_ID=2713
I want to select
CSource=xya (18 Replies)
I have many printer queues to be created in AIX 6.1. I can create printers with this line:
/usr/lib/lpd/pio/etc/piomkjetd mkpq_jetdirect -p 'hplj-4000' -D pcl -q 'emg1' -D ps -q 'emg1ps' -h 'emg1' -x '9100'
But, I like to feed the printer queue data, called "printfeed", so that I can... (8 Replies)