<?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: besides using spool in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743443#M944064</link>
    <description>Without knowing more about your printer connection and the type of data you are ending to the printer, it is very difficult to advise. &lt;BR /&gt;&lt;BR /&gt;In the simplest method (but almost never used today), you connect the printer to a parallel port, then create the appropriate device file and use ux2dos to translate ASCII files on HP-UX and redirect the result to the device file.&lt;BR /&gt;&lt;BR /&gt;If you use a serial connection, it becomes more complicated. After creating the appropriate serial device file, the default baud rate is 300 so you must keep one process running (like sleep) while redirecting sleep's input to the printer's device file and put it into the background. The use ux2dos to print ASCII files to the serial devicefile.&lt;BR /&gt;&lt;BR /&gt;NOTE: parallel and serial connections have *NO* locking capability so if 2 or more users try to print on the printer, the text will interleaved and useless.&lt;BR /&gt;&lt;BR /&gt;If the printer is connected to another computer, the complexity of sending the file with appropriate control commands is not worth the effort.&lt;BR /&gt;&lt;BR /&gt;If the printer is connected to a non-HP LAN adapter, it will look exactly like another computer using rlp so the previous comments about remote printers will apply.&lt;BR /&gt;&lt;BR /&gt;If the printer is connected to an HP JetDirect card and configured onto the network, the task is much simpler.  First, download the latest HP Printer Installer software (free) from:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp%3Flocale%3Den_US%26prodTypeId%3D13037%26prodSubCatId%3D28674" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp%3Flocale%3Den_US%26prodTypeId%3D13037%26prodSubCatId%3D28674&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(sorry for the awful URL) Pick HP-UX 10.x or 11.x to match your system and install the software according to the instructions on the web site. To print a file, just use the hpnpf command as in:&lt;BR /&gt;&lt;BR /&gt;/opt/hpnpl/bin/hpnpf -n -x 12.34.56.78 file_name&lt;BR /&gt;&lt;BR /&gt;where 12.34.56.78 is the IP address of the printer and file_name is a plain ASCII file.&lt;BR /&gt;&lt;BR /&gt;Now printing with controls (like landscape or duplex) is a bit more complicated. You'll first need a technical reference manual for the printer, then find the special escape sequences needed to change the printer's features. Then you'll have to prepend these sequences prior to each job, and also add reset sequences after each job to return the printer to a known state.&lt;BR /&gt;&lt;BR /&gt;Or you can use the lp spooler (which is a whole lot easier).</description>
    <pubDate>Wed, 12 Jun 2002 23:10:54 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2002-06-12T23:10:54Z</dc:date>
    <item>
      <title>besides using spool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743441#M944062</link>
      <description>besides using spool to output txt file, is there anyway you can do this without using spool?&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 22:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743441#M944062</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-12T22:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: besides using spool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743442#M944063</link>
      <description>please ignore this question...perhaps, i would say how to create a flat file...&lt;BR /&gt;To create a flat file with SQL*Plus, you first must enter the following SET commands: &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;SET NEWPAGE 0&lt;BR /&gt;SET SPACE 0&lt;BR /&gt;SET LINESIZE 80&lt;BR /&gt;SET PAGESIZE 0&lt;BR /&gt;SET ECHO OFF&lt;BR /&gt;SET FEEDBACK OFF&lt;BR /&gt;SET HEADING OFF&lt;BR /&gt;SET MARKUP HTML OFF SPOOL OFF&lt;BR /&gt;&lt;BR /&gt;After entering these commands, you use the SPOOL command as shown in the previous section to create the flat file. &lt;BR /&gt;&lt;BR /&gt;I have found my answer...thank you&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Jun 2002 22:47:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743442#M944063</guid>
      <dc:creator>Deanna Tran</dc:creator>
      <dc:date>2002-06-12T22:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: besides using spool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743443#M944064</link>
      <description>Without knowing more about your printer connection and the type of data you are ending to the printer, it is very difficult to advise. &lt;BR /&gt;&lt;BR /&gt;In the simplest method (but almost never used today), you connect the printer to a parallel port, then create the appropriate device file and use ux2dos to translate ASCII files on HP-UX and redirect the result to the device file.&lt;BR /&gt;&lt;BR /&gt;If you use a serial connection, it becomes more complicated. After creating the appropriate serial device file, the default baud rate is 300 so you must keep one process running (like sleep) while redirecting sleep's input to the printer's device file and put it into the background. The use ux2dos to print ASCII files to the serial devicefile.&lt;BR /&gt;&lt;BR /&gt;NOTE: parallel and serial connections have *NO* locking capability so if 2 or more users try to print on the printer, the text will interleaved and useless.&lt;BR /&gt;&lt;BR /&gt;If the printer is connected to another computer, the complexity of sending the file with appropriate control commands is not worth the effort.&lt;BR /&gt;&lt;BR /&gt;If the printer is connected to a non-HP LAN adapter, it will look exactly like another computer using rlp so the previous comments about remote printers will apply.&lt;BR /&gt;&lt;BR /&gt;If the printer is connected to an HP JetDirect card and configured onto the network, the task is much simpler.  First, download the latest HP Printer Installer software (free) from:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp%3Flocale%3Den_US%26prodTypeId%3D13037%26prodSubCatId%3D28674" target="_blank"&gt;http://h20000.www2.hp.com/bizsupport/TechSupport/Product.jsp%3Flocale%3Den_US%26prodTypeId%3D13037%26prodSubCatId%3D28674&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;(sorry for the awful URL) Pick HP-UX 10.x or 11.x to match your system and install the software according to the instructions on the web site. To print a file, just use the hpnpf command as in:&lt;BR /&gt;&lt;BR /&gt;/opt/hpnpl/bin/hpnpf -n -x 12.34.56.78 file_name&lt;BR /&gt;&lt;BR /&gt;where 12.34.56.78 is the IP address of the printer and file_name is a plain ASCII file.&lt;BR /&gt;&lt;BR /&gt;Now printing with controls (like landscape or duplex) is a bit more complicated. You'll first need a technical reference manual for the printer, then find the special escape sequences needed to change the printer's features. Then you'll have to prepend these sequences prior to each job, and also add reset sequences after each job to return the printer to a known state.&lt;BR /&gt;&lt;BR /&gt;Or you can use the lp spooler (which is a whole lot easier).</description>
      <pubDate>Wed, 12 Jun 2002 23:10:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743443#M944064</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-06-12T23:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: besides using spool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743444#M944065</link>
      <description>Ahhhh, SQL, not Unix.  You can ignore my answer.</description>
      <pubDate>Wed, 12 Jun 2002 23:12:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743444#M944065</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2002-06-12T23:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: besides using spool</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743445#M944066</link>
      <description>You also have the option of using the utl_file package to output information to a file as well.  This can be done inside of a sql program, like a procedure, where the "spool" command will not work.  &lt;BR /&gt;&lt;BR /&gt;Brian</description>
      <pubDate>Thu, 13 Jun 2002 05:01:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/besides-using-spool/m-p/2743445#M944066</guid>
      <dc:creator>Brian Crabtree</dc:creator>
      <dc:date>2002-06-13T05:01:53Z</dc:date>
    </item>
  </channel>
</rss>

