05-25-2005
Some success
I was able to make a printer utilize the jetdirect settings and it worked from the command line for multiple pages.
However, the form no longer works..
Below is the queue definitions from qconfig. Maybe someone can see something I can't seem to see..
Notice l300lj10 prints the multiple copies without the form.
Other variations except l300lj10 do not print.
l300lj10:
device = hp@l300lj10
hp@l300lj10:
file = /var/spool/lpd/pio/@local/dev/hp@l300lj10#hpJetDirect#9100
header = never
trailer = never
access = both
backend = /sx/script/pclbak3 -d oem
l300lj10a:
device = hp@l300lj10
hp@l300lj10:
file = /var/spool/lpd/pio/@local/dev/hp@l300lj10#hpJetDirect#9100
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piojetd l300lj10 9100
l300lj10b:
device = @l300lj10
host = l300lj10
rq = raw
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
@l300lj10:
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piorlfb -f +
l300lj10c:
device = @l300lj10
up = TRUE
host = l300lj10
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
rq = raw
@l300lj10:
backend = /sx/script/pclbak2 -d oem
l300lj10d:
device = @l300lj10
host = l300lj10
rq = raw
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
@l300lj10:
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piorlfb -f !
l300lj10e:
device = @l300lj10
host = l300lj10
rq = raw
s_statfilter = /usr/lib/lpd/aixshort
l_statfilter = /usr/lib/lpd/aixlong
@l300lj10:
header = never
trailer = never
access = both
backend = /usr/lib/lpd/pio/etc/piorlfb -f !
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I'm trying to print multiple copies of a file on sun solaris 8 with the lp -n command to no
avail. No matter what numeric value I supply -n, I still only get 1 copy
of the file printed.
The command I'm using is 'lp -d SNY_IT5000-2 -n2 file'
The printer is an HP Laserjet 4000 with a... (2 Replies)
Discussion started by: hassan2
2 Replies
2. AIX
Hi,
We have an application running on AIX5.3 that generates text files that are sent to be printed using the lp command.
The user can specify the number of copies they want printed, but only one copy ever gets printed.
I've checked the lp command that is used, and it correctly specifies... (5 Replies)
Discussion started by: stebradshaw
5 Replies
3. Shell Programming and Scripting
Hi, this is my first post so I hope I have placed it in the appropriate section!
I have created a looping script to print a text file multiple times.
The script works great, and it displays the job numbers of all the prints that result from its execution.
The trouble is, only the first job... (1 Reply)
Discussion started by: Alpha7
1 Replies
4. UNIX for Dummies Questions & Answers
Has anyone come accross and solved an issue where only 1 copy of a doc prints after you use the -n flag and specify more then 1. My exact syntax is
lp -dprintername -n3 documentname
enq command does same thing.
Both commands show the 3 copies in the queue but only 1 ever prints
I am using AIX... (0 Replies)
Discussion started by: capeme
0 Replies
5. UNIX for Dummies Questions & Answers
Dear all,
Today I spend almost all my day with something I hope any of you can help me with...
I'm trying to write a small script (!/bin/sh) to be able to make 900 copies of one file. Can anyone help me with this? I couldn't figure this out (maybe I need to create some sort of loop) and couldn't... (8 Replies)
Discussion started by: marjocello
8 Replies
6. AIX
Hi,
I'm at following old machine:@rs6000:/:> uname -a
AIX rs6000 2 4 007016224C00 We are facing some problems with print queues, whenever a print queue gets stuck we cannot cancel it, we don't have any other option except restarting the machine, we have following queues:@rs6000:/etc:> lpstat... (23 Replies)
Discussion started by: nervous
23 Replies
7. Shell Programming and Scripting
Hiya,
I want to allow some users to copy all filenames of a specific filetype, to a limited directory.
3+ users: need to be able to copy(as root) any *.war file to /usr/local/tomcat/current/webapps/
I tried the following...
dmurphy huskar=/tmp/who.sh,/bin/cp *.war... (2 Replies)
Discussion started by: infinitiguy
2 Replies
8. AIX
Hello all.
I am setting up a queue under AIX 4.2.1 to print to a remote Linux CUPS queue. At present I can print to the queue remotely from Windows but not AIX. What I am seeing is lpstat reads the state of the remote queue but at job submission time I am getting backend exit fatal errors. The... (4 Replies)
Discussion started by: tgx
4 Replies
9. UNIX for Dummies Questions & Answers
Hi,
We have a Unix 3.2v5.0.5.
I installed a printer via scoadmin, HP network printer manager with network peripheral name (hostname and ipadres are in /etc/hosts).
This is the configuration file :
Code:
root@sco1 # cat configurationBanner: on:AlwaysContent types: simpleDevice:... (0 Replies)
Discussion started by: haezeban
0 Replies
10. Shell Programming and Scripting
At work I have to create multiple copies of a file all the time.
Example: I have a file called Sec30p01.txt
I need thirty of these, then I edit one line in each to make 30 different control files.
So I end up with Sec30p02.txt, Sec30p03.txt and so on up to 30
Currently I copy the first file... (8 Replies)
Discussion started by: faaslave
8 Replies
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)