Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Print job keeps repeating - Help!

Posted on 2004-10-20
7
Medium Priority
?
670 Views
Last Modified: 2013-12-23
We have a Unix print job that is a one page report, set to print automatically every night at 3 AM. The problem is sometimes there are 200 pages of this one page report sitting on the printer (An HP Laserjet 5si - default setting is double sided printouts). This is driving my boss crazy!
I am not a Unix programmer or system administrator. This program (To generate the print job automatically) was written years ago. Within the past three months, the problem has happened 5 or six times. The inconsistency makes troubleshooting difficult.

I dont know if the problem is the program, a faulty network, setting the default to double sided, or an aging printer.
0
Comment
Question by:lifetech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 21

Expert Comment

by:tfewster
ID: 12362984
Doncha just hate intermittent problems?

First, check /var/spool/lp/log for errors; If the print job is not completing properly, e.g. no EOF or no EOL on the last line, the Unix system may keep resending it (at the request of the printer).

Is there any possibility the program is generating a command line `lp -n200 ...`, i.e. _requesting_ 200 copies?

Which Unix do you use? And how is the printer set up on the Unix box? (Direct/networked/Via a remote printer server)?

One troubleshooting approach would be to:
1) disable the printer
2) generate & queue the print job
3) copy /var/spool/lp/requests/printername/* (job control file & print file) to somewhere safe
4) enable the printer so the job prints.

If it works as expected, delete the "saved" copies; If it goes mad, examine the job control file  (format may vary, but on my HP system, the "keyword" K denotes number of copies) and the print file for evidence.
0
 
LVL 3

Author Comment

by:lifetech
ID: 12363137
The printer is networked via an internal Jetdirect card. I will interface with the Unix Admin on the troubleshooting approaches. Any ideas on why the print job usually prints fine - and only occasionally prints multiple copies?
0
 
LVL 3

Author Comment

by:lifetech
ID: 12363218
One frustrating thing about troubleshooting the problem is that it is automatic - set to run overnight. So far every time the Sys Admin has done the report manually - it prints out fine. So he does not believe there is any programming errors with the job itself. Could it be something with the scheduling aspect of it? Anyway - this is my theory - but it may not be related to the problem at all...
0
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
LVL 21

Accepted Solution

by:
tfewster earned 1500 total points
ID: 12363312
As I said, a malformed print job might cause the printer to report an error and request it to be resent; But thinking further, the printer would continue until it ran out of paper and the job would _still_ be queued until it was cancelled manually.

Otherwise, I'd suspect the program looping or requesting multiple copies.  I wouldn't suspect Unix/network/print spooler/printer until I'd "proved" that the print request & file were OK.
0
 
LVL 3

Author Comment

by:lifetech
ID: 12363460
I suspect it runs until the printer is out of paper, but I have not confirmed this. I know that the printer runs fine in the morning. I know that the job is not cancelled manually by the Unix Admin.
0
 
LVL 21

Expert Comment

by:tfewster
ID: 12460111
Hi lifetech - Did you track the problem down?
0
 
LVL 3

Author Comment

by:lifetech
ID: 12463038
We switched the printer with a different one. We believe at this point that it was hardware related, but because the problem is so inconsistent, I can't say for sure if thats it yet. Your suggestions did help us rule out some things - Thanks!
0

Featured Post

Simplify Your Workload with One Tool

How do you combat today’s intelligent hacker while managing multiple domains and platforms? By simplifying your workload with one tool. With Lunarpages hosting through Plesk Onyx, you can:

Automate SSL generation and installation with two clicks
Experience total server control

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you’re involved with your company’s wide area network (WAN), you’ve probably heard about SD-WANs. They’re the “boy wonder” of networking, ostensibly allowing companies to replace expensive MPLS lines with low-cost Internet access. But, are they …
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question