Sponsored Content
Top Forums Shell Programming and Scripting Script to print multiple copies of the same file Post 302095695 by Alpha7 on Thursday 9th of November 2006 10:48:31 AM
Old 11-09-2006
Question 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 emerges from the printer. Smilie All the other print jobs seem to disappear (despite showing as queued in the print queue).

One minute they are in the print queue waiting for the first job to finish, the next minute they have vanished from the queue, but to where I don't know!

Any suggestions or comments would be appreciated. I am running AIX 4.

Many Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

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... (2 Replies)
Discussion started by: hassan2
2 Replies

2. 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

3. Shell Programming and Scripting

Php script that copies Unix folders?

I work as a website designer where I work on different directories on a server but my boss doesnt give me root permission for security reasons. So I have a temporary folder where I work and he copies the files over as he has root permission. The command he uses is usually like: cp -fR... (4 Replies)
Discussion started by: edtech
4 Replies

4. 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

5. 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

6. Homework & Coursework Questions

Script that copies one file to/over another

1. The problem statement, all variables and given/known data: Write a script that asks for 4 arguments, and the 1st and 3rd need to be -i and -o, and the 2nd/4th need to be file names. Technically, it's supposed to be run as: ./Lab_14.sh -i input.txt -o output.txt Depending on how many... (0 Replies)
Discussion started by: SoVi3t
0 Replies

7. 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

8. Shell Programming and Scripting

I need a korn shell script that renames and copies

I have 68 servers whose /etc/ntp.conf file have the wrong NTP server name and they need to be updated with a different or correct NTP server name. I am doing this on AIX Here is what I would like. and I would need a script that would rename the old /etc/ntp.conf and add a date stamp to it ... (1 Reply)
Discussion started by: jesifra
1 Replies

9. 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

10. 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
faxq(1) 						       mgetty+sendfax manual							   faxq(1)

NAME
faxq - display fax jobs queued by faxspool(1) SYNOPSIS
faxq [<command>] [-osa] [-v] [-r] [-P<job><prio>] DESCRIPTION
Display the fax queue set up by faxspool(1). faxq looks for all the jobs queued by faxspool(1) to /var/spool/fax/outgoing/*. For each job in the queue, faxq displays some status infor- mations about it. If no options are specified, one line per queued fax job is printed, displaying the job number, sender, number of pages and target fax number. COMMANDS
faxq stop stops the fax queue processing by creating the file /var/spool/fax/outgoing/stop. This command works only if you have write access to the spool directory. Depending on local setup, this means ``root only'' or ``fax administrator group''. If you don't have write access, an error message is printed. faxq start re-starts a previously stopped fax queue, by removing the ``stop'' file. As for faxq stop this only works if you have write access. OPTIONS
-v Tells faxq to print a more verbose report for each job (multiple lines). -o Show old jobs, already sent but still in the queue directory, too. -s Show suspended jobs (stopped because of too many fatal errors during sending). You can restart those jobs with faxq -r -a Show all jobs (active, old, suspended). -r Restart suspended jobs. Every suspended job in the queue (that you have write permissions for) will be requeued. Use faxrm to delete jobs that you do not want to be sent! -P <job> <prio> Change the priority of fax job <job> to <prio>. Example: "faxq -P F000247 3". BUGS
faxq doesn't handle time scheduling yet. faxq -P is currently broken (needs re-implementing with faxq-helper). SEE ALSO
faxrunq(1), faxspool(1), faxrm(1), faxqueue(5) AUTHOR
faxq is Copyright (C) 1993 by Gert Doering, <gert@greenie.muc.de>. greenie 27 Oct 93 faxq(1)
All times are GMT -4. The time now is 07:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy