<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LP spooler causes endless printing of the same job in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614501#M234940</link>
    <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;"once a week we get an endless print job"&lt;BR /&gt;&lt;BR /&gt;Is it the same job every week ? Some scheduled printout or, some report printed once a week ?&lt;BR /&gt;&lt;BR /&gt;And, is it perhaps something strange with this specific job, does  normal printing work OK.&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Aug 2005 06:03:59 GMT</pubDate>
    <dc:creator>Leif Halvarsson_2</dc:creator>
    <dc:date>2005-08-30T06:03:59Z</dc:date>
    <item>
      <title>LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614500#M234939</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;once a week we get an endless print job&lt;BR /&gt;which can be stopped only by disabling/enabling&lt;BR /&gt;the queue. Does anybody know this behaviour and&lt;BR /&gt;is there some solution!?&lt;BR /&gt;&lt;BR /&gt;The environment is:&lt;BR /&gt;HP network printers of model type net_lj4x and net_lj4100. The print job is a "normal" pcl document which is printed with lp. When the print job is active the same document gets printed on hundreds of sheets until somebody turns of the printer or the paper is empty...&lt;BR /&gt;During this time the usual hpnpf process is visible in the process list.&lt;BR /&gt;The workaround for the problem is to run disable/enable on the queue.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated,&lt;BR /&gt;&lt;BR /&gt;Lothar</description>
      <pubDate>Tue, 30 Aug 2005 04:44:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614500#M234939</guid>
      <dc:creator>Lothar Seitter</dc:creator>
      <dc:date>2005-08-30T04:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614501#M234940</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;"once a week we get an endless print job"&lt;BR /&gt;&lt;BR /&gt;Is it the same job every week ? Some scheduled printout or, some report printed once a week ?&lt;BR /&gt;&lt;BR /&gt;And, is it perhaps something strange with this specific job, does  normal printing work OK.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Aug 2005 06:03:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614501#M234940</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-08-30T06:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614502#M234941</link>
      <description>Hi Lothar,&lt;BR /&gt;&lt;BR /&gt;As requested in the previous post, more specifics of the problem would help.&lt;BR /&gt;&lt;BR /&gt;The only reason why the same printout keeps printing is, the spooler considers that printer went off before completing a job.&lt;BR /&gt;&lt;BR /&gt;Therefore the job is resubmitted for printing from the beginning. If this happens only with a particular printing job, then it is worth analysing the print job for any special characters.&lt;BR /&gt;&lt;BR /&gt;With regards,&lt;BR /&gt;Mohan.</description>
      <pubDate>Tue, 30 Aug 2005 06:28:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614502#M234941</guid>
      <dc:creator>Mohanasundaram_1</dc:creator>
      <dc:date>2005-08-30T06:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614503#M234942</link>
      <description>There are two reasons for mu;tiple copies: lp was scheduled with the -n option. If this was from a script, perhaps an undefined or invalid variable was used with the -n option thus requesting 10,000 copies. You can verify this when the problem occurs by using lpstst to determine the current print job number, then go into the /var/spool/lp/request where you'll see a directory for each printer. Change directory to the printer having a problem and there will be two files for each print job: a control file and a data file. The control file starts with the letter "c" and has all the command line parameters stored in that file. The line that starts with K is the quantity. If it does not read: K1 then the -n option was used in the lp command for that print job.&lt;BR /&gt; &lt;BR /&gt;The second is a network problem and for that, you'll need to enable hpnpf logging (which could create a large file if the print job is very large).  The option is -ohpnpflog and must be included on the commandline with the problem report. The log will be stored in /opt/hpnpl/tmp/hpnpflog and should be watched to make sure it doesn't fill /opt. This is a detailed protocol trace for the network connection. Most likely, you'll see the connection getting reset and the job restarted. That is the source of the multiple copies.&lt;BR /&gt; &lt;BR /&gt;Now why the connection is reset will take some more work. Does the problem occur with the exact same document or various documents? Or is the document custom-generated by some report-writer? The reason is that the document may be creating a PCL code that is incorrect for the printer and the printer itself is getting reset. To determine what the code is that is causing the problem, you can use the debugm option, as in lp -dprinter -odebugm/var/tmp/debugfile &lt;PROBLEM_FILE&gt;. The /var/tmp/debugfile will be exactly what will be sent to the printer. Use vi to look at the area where the printing restarts.&lt;BR /&gt; &lt;BR /&gt;And the other possibility is network problems which will require more detailed work. You can try turning off the the TRUE-EOJ option in the JetDirect setup for the printer. Run hppi and modify the printer queue to disable TRUE-EOJ (in the Additional Options).&lt;/PROBLEM_FILE&gt;</description>
      <pubDate>Tue, 30 Aug 2005 07:19:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614503#M234942</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-30T07:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614504#M234943</link>
      <description>&amp;gt;Is it the same job every week?&lt;BR /&gt;&lt;BR /&gt;No, once a week is only the estimation of frequency. These are all different print jobs&lt;BR /&gt;created from a report writer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The only reason why the same printout keeps&lt;BR /&gt;&amp;gt; printing is, the spooler considers that&lt;BR /&gt;&amp;gt; printer went off before completing a job.&lt;BR /&gt;&lt;BR /&gt;Went off or some other signal from the printer that the print job has failed. This is what I guess, too.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; lp was scheduled with the -n&lt;BR /&gt;&lt;BR /&gt;Definetely not. We don't create copies on the spooler level.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; The second is a network problem&lt;BR /&gt;&lt;BR /&gt;Yes. Network, printer or pcl seems very reasonable for me. Unfortunately I don't have&lt;BR /&gt;an example to reproduce the problem, but I am &lt;BR /&gt;trying the hpnpf log option as well as the debug option and the TRUE-EOJ flag. The last one sounds very interesting.&lt;BR /&gt;&lt;BR /&gt;@Bill: Thanks a lot for this detailed information.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Aug 2005 08:12:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614504#M234943</guid>
      <dc:creator>Lothar Seitter</dc:creator>
      <dc:date>2005-08-30T08:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614505#M234944</link>
      <description>Lothar, We had problems with the "TRUE END OF JOB"&lt;BR /&gt;attribute.  I always turn it off. It intermittently caused us problems until we did.&lt;BR /&gt;Tommy</description>
      <pubDate>Tue, 30 Aug 2005 09:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614505#M234944</guid>
      <dc:creator>Tommy Brown</dc:creator>
      <dc:date>2005-08-30T09:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614506#M234945</link>
      <description>And in case you have lots of JetDirect printers to fix, use the modifyqueu command as in:&lt;BR /&gt; &lt;BR /&gt;for MYPRN in $(cat list-of-printernames)&lt;BR /&gt;do&lt;BR /&gt;/opt/hpnpl/bin/modifyqueue -q $MYPRN -t off&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;where the file list-of-printernames contains a list of JetDirect printer queues. (man modifyqueue)</description>
      <pubDate>Tue, 30 Aug 2005 09:17:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614506#M234945</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2005-08-30T09:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: LP spooler causes endless printing of the same job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614507#M234946</link>
      <description>Lothar,&lt;BR /&gt;&lt;BR /&gt;I once had a similar problem and it was not the print job itsself but the job that printed just prior that left some control characters at the end which caused the next print job to get corrupted.&lt;BR /&gt;&lt;BR /&gt;Once the right print job was identified, the queue was held and the output was examined prior to printout and the problem-causing control characters were identified.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Wed, 31 Aug 2005 12:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler-causes-endless-printing-of-the-same-job/m-p/3614507#M234946</guid>
      <dc:creator>Steve McClendon_1</dc:creator>
      <dc:date>2005-08-31T12:14:39Z</dc:date>
    </item>
  </channel>
</rss>

