lp not printing multiple copies


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users lp not printing multiple copies
# 1  
Old 09-02-2003
lp not printing multiple copies

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 Jetdirect card. My printers.conf
entry is:

SNY_IT5000-2:\
:bsdaddr=10.10.21.17,10.10.21.17:\
:description=SNY_IT5000-2:


Printing in this manner works fine otherwise, it just won't print multiple copies.

Can you help please?

Thanks in Advance

Last edited by hassan2; 09-02-2003 at 01:24 PM..
# 2  
Old 09-02-2003
I haven't had to mess with printing for some time (all done on the NT side) but if I remember correctly, it's something to do with /etc/lp/interfaces/yourprintername files.

SeeSame question at HP

(Turk182 - good movie)
# 3  
Old 09-02-2003
That HP link is for a different problem. Hassan2 always gets 1 copy but wants more copies. The link addresses an issue where the user gets an infinite number of copies.

We no longer have laserjets, but we still have the software which really should have been removed. I can look at the software, but I can't test anything. So this is a shot in the dark.

We have two interface scripts, one in /etc/lp/interfaces and the second in /etc/lp/interfaces/model.orig. The first calls the second. In the second one I see some code...
Code:
if [ $ "$topaz" = "yes" ]
then
  echo "@PJL SET QTY = $copies"
  copies="1"
fi

This looks like an attempt to send the job to the printer once and have the printer print it multiple times.

If you have the same code, you might look at the printer options to see if you can get this to work. Or try commenting out that paragraph.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Printing multiple columns from a file

Hi, I need just to print the values of second and fourth column from a file # cat dispaly id Name Std Specialist 1 sss X mathematics 2 uyt IX geography 3 vcd X English i tried with some NF command.. I think am wrong.. Is there anyother way to print my requirement (3 Replies)
Discussion started by: Priya Amaresh
3 Replies

2. Shell Programming and Scripting

How to make multiple copies?

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

3. Shell Programming and Scripting

Need Help with grep printing multiple lines.

I need help in printing multiple lines using a grep command. The situation is like this. I have a file that contains large number of lines Now I need to find the the lines in the file such that if the word "AllServiceType" is found then the next line also gets printed. Does anyone... (6 Replies)
Discussion started by: m_usmanayub
6 Replies

4. Shell Programming and Scripting

Print multiple copies page by page using lp command

Hi I have a pdf file that is being generated using the rwrun command in the shell script. I then have the lp command in the shell script to print the same pdf file. Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies

5. Shell Programming and Scripting

Help configuring sudo for multiple file copies

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

6. UNIX for Dummies Questions & Answers

multiple copies at once

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

7. UNIX for Dummies Questions & Answers

Printing Multiple Copies

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

8. Shell Programming and Scripting

Script to print multiple copies of the same file

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

9. AIX

Printing a number of copies of a txt file

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

10. AIX

Printing multiple copies via remote queue

Hi all, I have an interesting problem. Using remote queues to print using jetdirect printers I am unable to get a printer to print multiple copies of a print job. command being used: lpr -P -#3 ./test (one copy prints) Also tried: enq -P -C3 ./test (same results) Any ideas? ... (6 Replies)
Discussion started by: Luck
6 Replies
Login or Register to Ask a Question