<?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 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787899#M78891</link>
    <description>/var/spool/lp contains the spooled files.&lt;BR /&gt;/etc/lp/interface should contain the files for each printer.&lt;BR /&gt;&lt;BR /&gt;Most likely have the wrong driver setup for the printer.  Check to see what is setup in /etc/lp/interface/ddog1.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Aug 2002 15:08:39 GMT</pubDate>
    <dc:creator>Sean OB_1</dc:creator>
    <dc:date>2002-08-16T15:08:39Z</dc:date>
    <item>
      <title>lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787896#M78888</link>
      <description>What exactly is happening when the lp command is given?  As an example: &lt;BR /&gt;  lp -ddog1 fish.txt&lt;BR /&gt;&lt;BR /&gt;What directory contains the file used to spool the "fish.txt" and set it up for printing?  What directory contains the device "dog1"?  How is "dog1" related to a real device or port?&lt;BR /&gt;&lt;BR /&gt;I am attempting to trace the flow of the output from the source file, through the spooler system and then to the final output device because somewhere along the way it seems to be prepared for an output device that was not the one specified; i.e., the output contains unprintables, page ejects and overstrikes.</description>
      <pubDate>Fri, 16 Aug 2002 14:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787896#M78888</guid>
      <dc:creator>Patrick Williams_1</dc:creator>
      <dc:date>2002-08-16T14:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787897#M78889</link>
      <description>Check&lt;BR /&gt;/var/spool/lp directory.&lt;BR /&gt;&lt;BR /&gt;-USA..</description>
      <pubDate>Fri, 16 Aug 2002 15:03:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787897#M78889</guid>
      <dc:creator>Uday_S_Ankolekar</dc:creator>
      <dc:date>2002-08-16T15:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787898#M78890</link>
      <description>Well, that's a big question. I'll at least get you started. Look under /var/spool/lp. You will see an interfaces directory and that will have a file named dog1. It's almost always a shell script but it handles the command to actually print the file(s). There is also a direcory named request; it will have have a directory under it named 'dog1' as well and this is where the actual request data is stored.&lt;BR /&gt;&lt;BR /&gt;Now here's where things get a little tricky.&lt;BR /&gt;&lt;BR /&gt;suppose that you did this:&lt;BR /&gt;lp -ddog1 fish.txt&lt;BR /&gt;sleep 300&lt;BR /&gt;rm fish.txt&lt;BR /&gt;&lt;BR /&gt;You think 300 seconds is plenty of time for whatever it is that lp does and that it should be okay to rm fish.txt. The answer? maybe. The actual file 'fish.txt' is not copied by lp; it only knows the name of the file. &lt;BR /&gt;&lt;BR /&gt;However,&lt;BR /&gt;lp -ddog1 -c fish.txt&lt;BR /&gt;rm fish.txt&lt;BR /&gt;or&lt;BR /&gt;cat fish.txt | lp -ddog1&lt;BR /&gt;rm fish.txt&lt;BR /&gt;&lt;BR /&gt;will work perfectly because the data itself is copied or at least is open so that rm will remove the link but will not actually delete the file itself until all file descriptors which had fish.txt open are closed.&lt;BR /&gt;&lt;BR /&gt;Man lp* for details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 15:06:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787898#M78890</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2002-08-16T15:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787899#M78891</link>
      <description>/var/spool/lp contains the spooled files.&lt;BR /&gt;/etc/lp/interface should contain the files for each printer.&lt;BR /&gt;&lt;BR /&gt;Most likely have the wrong driver setup for the printer.  Check to see what is setup in /etc/lp/interface/ddog1.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 15:08:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787899#M78891</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-08-16T15:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787900#M78892</link>
      <description>oops, obviously it should be /etc/lp/interface/dog1 not ddog1.&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Aug 2002 15:09:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787900#M78892</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-08-16T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787901#M78893</link>
      <description>The /etc/lp/interface dir contains a file named for each printer. This script is run when the job prints. For many of my printers, the output is not right unless the line with PRINTERCFG= has nothing after the =. The subdirectory model.orig in interface contains a file for each printer - this has the model info that the printer was configured with. This is one thing SAM doesn't show. You can see if this is set to the wrong type of printer by doing a  head on the file.</description>
      <pubDate>Fri, 16 Aug 2002 15:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787901#M78893</guid>
      <dc:creator>Dave Chamberlin</dc:creator>
      <dc:date>2002-08-16T15:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787902#M78894</link>
      <description>Patrick,&lt;BR /&gt;&lt;BR /&gt;Just a reminder to give points out to those who answered your questions. It only takes a moment, and helps make the forums more useful to everyone. &lt;BR /&gt;&lt;BR /&gt;Sean &lt;BR /&gt;</description>
      <pubDate>Thu, 12 Sep 2002 17:08:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787902#M78894</guid>
      <dc:creator>Sean OB_1</dc:creator>
      <dc:date>2002-09-12T17:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787903#M78895</link>
      <description>Here's some info for you as I had to go through it all as we run printing as as package in MC/ServiceGuard:&lt;BR /&gt;&lt;BR /&gt;/etc/lp    Directory of spooler configuration data &lt;BR /&gt;/var/sam/lp   Backup directory of spooler configuration &lt;BR /&gt;/var/spool/lp   Directory of LP spooling files and directories &lt;BR /&gt;/var/adm/lp   Directory of spooler log files &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Here's a script to check printer status:&lt;BR /&gt;&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;#&lt;BR /&gt;# check printer status&lt;BR /&gt;# Geoff Wild&lt;BR /&gt;&lt;BR /&gt;if [ $# -lt 1 -o \( $# -gt 1 -a $# -lt 4 \) ]&lt;BR /&gt;then&lt;BR /&gt;  echo "Usage:"&lt;BR /&gt;  echo "lpst \"printer\""&lt;BR /&gt;  echo "Example:"&lt;BR /&gt;  echo "lpst W052"&lt;BR /&gt;  exit 1&lt;BR /&gt;fi&lt;BR /&gt;echo " "&lt;BR /&gt;/usr/sbin/ping $1 -n 2&lt;BR /&gt;echo " "&lt;BR /&gt;lpstat -p$1 -v$1 &lt;BR /&gt;echo " "&lt;BR /&gt;echo "Output Requests"&lt;BR /&gt;echo "-----------------------------------------------------------"&lt;BR /&gt;lpstat -o$1&lt;BR /&gt;echo " "&lt;BR /&gt;lpstat -r&lt;BR /&gt;echo " "&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;As far as your question:&lt;BR /&gt;&lt;BR /&gt;lp -ddog1 fish.txt &lt;BR /&gt;&lt;BR /&gt;fish.txt (if it exists) is submitted to the queue dog1.  The file is copied to /var/spool/lp/receive.&lt;BR /&gt;&lt;BR /&gt;/etc/lp/interface/dog1 is the model script used to print the file.&lt;BR /&gt;&lt;BR /&gt;The actual device?  /dev/null unless it is remote.  But I assume the "actual" device.  Well, device should have an ip address - if you are using HP printers with Jet Direct cards, then:&lt;BR /&gt;&lt;BR /&gt;/opt/hpnpl/bin/hpnpadmin -v dog1 &lt;BR /&gt;&lt;BR /&gt;That should give you some details.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 14 Sep 2002 23:42:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787903#M78895</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2002-09-14T23:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: lp spooler</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787904#M78896</link>
      <description>Here's an overview of lp:&lt;BR /&gt;&lt;BR /&gt;lp doesn't print anything. Instead, it checks that there is an accessible file to print and that the printer is accepting requests (disabled printers can still accept jobs). If that's true, lp will copy the file to /var/spool/lp/request/&lt;PRINTERNAME&gt; creating a datafile and also a control file. Then, a token is dropped into the FIFO file and lp terminates.&lt;BR /&gt;&lt;BR /&gt;Now, the first lpsched (parent is init) reads FIFO and schedules another lpsched to run the print job. This lpsched reads the control file, looks in the pstat file for details about the printer and then schedules a printer script (often called a driver but not really) which then sends the print job to the printer.&lt;BR /&gt;&lt;BR /&gt;What makes all this complicated is the very wide variety of printer connections: serial, parallel, JetDirect, remote. So you can see a print job in the /var/spool/lp/request directory.&lt;BR /&gt;&lt;BR /&gt;Now formatting errors are almost always due to a mismatch between the file type and the output method. HP-UX performs no re-formatting when sending data to a remote system. This is likely your problem. HP-UX will translate ASCII so there is a CR/LF pair but only for local printers. The postscript model will translate plain ASCII but will not translate Postscript into PCL or vice versa.&lt;BR /&gt;&lt;BR /&gt;Perhaps a description of how the printer is connected will help. And a model number for the printer will help.&lt;/PRINTERNAME&gt;</description>
      <pubDate>Sun, 15 Sep 2002 02:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lp-spooler/m-p/2787904#M78896</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-09-15T02:05:43Z</dc:date>
    </item>
  </channel>
</rss>

