<?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 dot matrix printer formfeed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223409#M170744</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've set up our dot matrix printer with HP Jetadmin using a 'dumbplot printer with CR' and everything prints out fine.  The problem we have is that we need to send a form feed to the printer once the job has been completed.&lt;BR /&gt;&lt;BR /&gt;I've contacted HP support and they've pointed me in the right direction.  They said to modify the /var/spool/lp/interface/model.orig/printername file.&lt;BR /&gt;&lt;BR /&gt;I've attached the printer file.  Any help with modifying this file to add the formfeed to the end of the print job would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Cheng Ngan</description>
    <pubDate>Thu, 18 Mar 2004 20:01:23 GMT</pubDate>
    <dc:creator>Cheng Ngan</dc:creator>
    <dc:date>2004-03-18T20:01:23Z</dc:date>
    <item>
      <title>dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223409#M170744</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've set up our dot matrix printer with HP Jetadmin using a 'dumbplot printer with CR' and everything prints out fine.  The problem we have is that we need to send a form feed to the printer once the job has been completed.&lt;BR /&gt;&lt;BR /&gt;I've contacted HP support and they've pointed me in the right direction.  They said to modify the /var/spool/lp/interface/model.orig/printername file.&lt;BR /&gt;&lt;BR /&gt;I've attached the printer file.  Any help with modifying this file to add the formfeed to the end of the print job would be appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Cheng Ngan</description>
      <pubDate>Thu, 18 Mar 2004 20:01:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223409#M170744</guid>
      <dc:creator>Cheng Ngan</dc:creator>
      <dc:date>2004-03-18T20:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223410#M170745</link>
      <description>Cheng,&lt;BR /&gt;&lt;BR /&gt;try this:&lt;BR /&gt;&lt;BR /&gt;while [ $i -le $copies ]&lt;BR /&gt;do&lt;BR /&gt; for file in $files&lt;BR /&gt; do&lt;BR /&gt;  cat "$file" | sed 's/$/\&lt;BR /&gt;/' 2&amp;gt;&amp;amp;1&lt;BR /&gt; done&lt;BR /&gt; i=`expr $i + 1`&lt;BR /&gt;done&lt;BR /&gt;echo "\014"</description>
      <pubDate>Thu, 18 Mar 2004 20:30:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223410#M170745</guid>
      <dc:creator>Julio Yamawaki</dc:creator>
      <dc:date>2004-03-18T20:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223411#M170746</link>
      <description>Thanks Julio.&lt;BR /&gt;&lt;BR /&gt;I tried this but it only sent an extra line feed at the end of the job and not a form feed.&lt;BR /&gt;Any ideas on what code I should add to send a form feed (or a Control-L)?&lt;BR /&gt;&lt;BR /&gt;Cheng</description>
      <pubDate>Fri, 19 Mar 2004 12:57:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223411#M170746</guid>
      <dc:creator>Cheng Ngan</dc:creator>
      <dc:date>2004-03-19T12:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223412#M170747</link>
      <description>Cheng,&lt;BR /&gt;&lt;BR /&gt;try changing \014 by \014\c.&lt;BR /&gt;If this won't work, try changing to \n</description>
      <pubDate>Fri, 19 Mar 2004 13:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223412#M170747</guid>
      <dc:creator>Julio Yamawaki</dc:creator>
      <dc:date>2004-03-19T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223413#M170748</link>
      <description>The echo "\014" sends a FF plus a LF (implicit); add a \c to not echo the LF.&lt;BR /&gt;echo "\014\c" but even better is:&lt;BR /&gt;echo "\f\c"; man echo for details.&lt;BR /&gt;&lt;BR /&gt;This is what I would do:&lt;BR /&gt;&lt;BR /&gt;TDIR=${TMPDIR:-/var/tmp}&lt;BR /&gt;T2=${TDIR}/P${$}_2.cmd&lt;BR /&gt;echo "\f\c" &amp;gt; ${T2}&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;for file in ${files}&lt;BR /&gt;do&lt;BR /&gt;  cat "${file}" ${T2} 2&amp;gt;&amp;amp;1&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;....&lt;BR /&gt;....&lt;BR /&gt;rm -f ${T2}&lt;BR /&gt;&lt;BR /&gt;Note that you could also create a "T1" file to do printer initialization and then &lt;BR /&gt;cat ${T1} "${file}" ${T2} 2&amp;gt;&amp;amp;1 &lt;BR /&gt;&lt;BR /&gt;to send both an initialization sequence and a termination sequence to the printer.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2004 13:15:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223413#M170748</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-03-19T13:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223414#M170749</link>
      <description>Hi,&lt;BR /&gt;The dumbplot script is intended for pen-plotters. Try the dumb model script instead, it sends by default a formfed after each file.</description>
      <pubDate>Fri, 19 Mar 2004 13:29:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223414#M170749</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2004-03-19T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: dot matrix printer formfeed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223415#M170750</link>
      <description>Got it working with the \014\c. option.&lt;BR /&gt;Thanks everyone.&lt;BR /&gt;</description>
      <pubDate>Fri, 19 Mar 2004 17:01:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dot-matrix-printer-formfeed/m-p/3223415#M170750</guid>
      <dc:creator>Cheng Ngan</dc:creator>
      <dc:date>2004-03-19T17:01:04Z</dc:date>
    </item>
  </channel>
</rss>

