<?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: Print file name problem in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383710#M198085</link>
    <description>Nothing in lp except a separate 'banner' page which precedes the print job. However, you can use the pr command and pipe the result to lp:&lt;BR /&gt; &lt;BR /&gt;pr /etc/hosts | lp&lt;BR /&gt; &lt;BR /&gt;see the man page for lots of options.</description>
    <pubDate>Tue, 21 Sep 2004 18:44:03 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2004-09-21T18:44:03Z</dc:date>
    <item>
      <title>Print file name problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383709#M198084</link>
      <description>Could I use "lp" command to print out the file name in the paper.&lt;BR /&gt;&lt;BR /&gt;For example: I want to print out /etc/hosts, the paper should have the hosts file information and the header that has "/etc/hosts". What option of "lp" command can be used or there is no method to do that?&lt;BR /&gt;&lt;BR /&gt;--Simon</description>
      <pubDate>Tue, 21 Sep 2004 18:07:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383709#M198084</guid>
      <dc:creator>simon_108</dc:creator>
      <dc:date>2004-09-21T18:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Print file name problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383710#M198085</link>
      <description>Nothing in lp except a separate 'banner' page which precedes the print job. However, you can use the pr command and pipe the result to lp:&lt;BR /&gt; &lt;BR /&gt;pr /etc/hosts | lp&lt;BR /&gt; &lt;BR /&gt;see the man page for lots of options.</description>
      <pubDate>Tue, 21 Sep 2004 18:44:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383710#M198085</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-09-21T18:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Print file name problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383711#M198086</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Thanks your answer.&lt;BR /&gt;&lt;BR /&gt;If using "pr /etc/hosts | lp" that has some trouble because I may need to do it everytime if print another file.&lt;BR /&gt;&lt;BR /&gt;Do you know there has or has no any script or deamon that may enable for it?&lt;BR /&gt;&lt;BR /&gt;--Simon</description>
      <pubDate>Tue, 21 Sep 2004 20:21:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383711#M198086</guid>
      <dc:creator>simon_108</dc:creator>
      <dc:date>2004-09-21T20:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: Print file name problem</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383712#M198087</link>
      <description>There is nothing in the lp spooler to do specialized formatting like pr. If you are good at shell scripting, you could modify each printer's script in /etc/lp/interface or /etc/lp/interface/model.orig (for HP JetDirect printers). Or create a script called prlp, something like this:&lt;BR /&gt; &lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;# pipe lp jobs through pr&lt;BR /&gt;if [ $# -lt 1 ]&lt;BR /&gt;then&lt;BR /&gt;echo "$0 requires a filename to print"&lt;BR /&gt;exit 1&lt;BR /&gt;fi&lt;BR /&gt;for PRINTJOB in $@&lt;BR /&gt;do&lt;BR /&gt;pr $PRINTJOB | lp&lt;BR /&gt;done&lt;BR /&gt; &lt;BR /&gt;To sue this script, make it executable and do soemthing like this:&lt;BR /&gt; &lt;BR /&gt;export LPDEST=myprinter&lt;BR /&gt;prlp /etc/hosts /etc/profile /etc/fstab&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;Now this is fairly simple--no options for pr and no options for lp. You can set the printer to use with LPDEST outside the script, or make the printer the first parameter and the printjob(s) the second parameter. Lots of possibilities, just look at the man page for pr.</description>
      <pubDate>Tue, 21 Sep 2004 20:55:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/print-file-name-problem/m-p/3383712#M198087</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2004-09-21T20:55:09Z</dc:date>
    </item>
  </channel>
</rss>

