<?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 Non-HP printer setup in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947319#M115002</link>
    <description>Hi&lt;BR /&gt;I have never work with printer before I need big time help.&lt;BR /&gt;We have eltron bar code printer. We just want to send simple text file which has four line in it. Printer is directly connected with unix workstation. &lt;BR /&gt;&lt;BR /&gt;How do I configure it? what is the model script? I try to read other post about it but it is not making sense to me, maty be I am dumb. I have dumb model script that we are using to setup our old Epson dot matrix printer.&lt;BR /&gt;Here is what I was doing for my dot matrix pritner&lt;BR /&gt;lpadmin -plb -mdumb -v/dev/c0t1d0_lp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 09 Apr 2003 15:16:25 GMT</pubDate>
    <dc:creator>Technical Support_2</dc:creator>
    <dc:date>2003-04-09T15:16:25Z</dc:date>
    <item>
      <title>Non-HP printer setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947319#M115002</link>
      <description>Hi&lt;BR /&gt;I have never work with printer before I need big time help.&lt;BR /&gt;We have eltron bar code printer. We just want to send simple text file which has four line in it. Printer is directly connected with unix workstation. &lt;BR /&gt;&lt;BR /&gt;How do I configure it? what is the model script? I try to read other post about it but it is not making sense to me, maty be I am dumb. I have dumb model script that we are using to setup our old Epson dot matrix printer.&lt;BR /&gt;Here is what I was doing for my dot matrix pritner&lt;BR /&gt;lpadmin -plb -mdumb -v/dev/c0t1d0_lp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Apr 2003 15:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947319#M115002</guid>
      <dc:creator>Technical Support_2</dc:creator>
      <dc:date>2003-04-09T15:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Non-HP printer setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947320#M115003</link>
      <description>&lt;BR /&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Here is what I suggest.&lt;BR /&gt;&lt;BR /&gt;  . Use SAM to define a local printer.&lt;BR /&gt;    Do not bother about what model-script &lt;BR /&gt;    to use (this will be taken care of later)&lt;BR /&gt;    But in SAM you will have to specify the&lt;BR /&gt;    correct port to connec to (serial or parallell)&lt;BR /&gt;&lt;BR /&gt;  . When you have defined the printer with SAM&lt;BR /&gt;    the model script for the printer will be&lt;BR /&gt;    found in /etc/lp/interface  as a file with&lt;BR /&gt;    the same  name you gave to the printer in&lt;BR /&gt;    SAM.&lt;BR /&gt;    Replace this file with the simplest model-script you can find.  It may be that the dumb&lt;BR /&gt;script you used for your  matrix printer is ok.&lt;BR /&gt;&lt;BR /&gt;    If not, here is about the simplest &lt;BR /&gt;    interface-script available:#!/usr/bin/sh&lt;BR /&gt;#  $Source: /hpux/shared/supp//usr/src/cmd/lp/./model/dumbplot,v $&lt;BR /&gt;#  $Revision: 72.2 $&lt;BR /&gt;#&lt;BR /&gt;# lp interface for dumb plotter&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;copies=$4&lt;BR /&gt;&lt;BR /&gt;# Handle disable and cancel traps&lt;BR /&gt;trap "trap 15;kill -15 0;exit 0" 15&lt;BR /&gt;&lt;BR /&gt;# The remaining arguments are files&lt;BR /&gt;&lt;BR /&gt;shift; shift; shift; shift; shift&lt;BR /&gt;files="$*"&lt;BR /&gt;&lt;BR /&gt;# Plot the spooled files&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i=1&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" 2&amp;gt;&amp;amp;1&lt;BR /&gt;                &lt;BR /&gt;        done&lt;BR /&gt;        i=`expr $i + 1`&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;exit 0&lt;BR /&gt;&lt;BR /&gt;If you use  the serial port you may have to&lt;BR /&gt;use a stty command at the top of the script&lt;BR /&gt;to set the speed.  Check other scripts in&lt;BR /&gt;/usr/spool/lp/model  to see how this is done.&lt;BR /&gt;It may also be that you will have to add&lt;BR /&gt;this command after the cat "$file ..&lt;BR /&gt;   echo "\014\c"&lt;BR /&gt;to get the  paper out of the printer.&lt;BR /&gt;You may have to check the manual for your bar code printer to see if a special command is&lt;BR /&gt;needed to do this.  "\014\c"  is a form-feed.&lt;BR /&gt;&lt;BR /&gt;Good luck&lt;BR /&gt;&lt;BR /&gt;Olav&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 09 Apr 2003 18:53:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947320#M115003</guid>
      <dc:creator>Olav Baadsvik</dc:creator>
      <dc:date>2003-04-09T18:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Non-HP printer setup</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947321#M115004</link>
      <description>I am half way now.&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;I was able to communicat to printer. I did print a line of text.&lt;BR /&gt;&lt;BR /&gt;I setup printer as you say. created a text file with control sequence and print that control sequence file and I have one line of text.&lt;BR /&gt;&lt;BR /&gt;Second question now. How do I convert my four line text to printer sequence.&lt;BR /&gt;&lt;BR /&gt;file1 is looks like&lt;BR /&gt;Unix works fine&lt;BR /&gt;Linux may work fine&lt;BR /&gt;Windows works some time&lt;BR /&gt;&lt;BR /&gt;when I try to print this text file it won't work until I have some thing like&lt;BR /&gt;&lt;BR /&gt;A50,0,0,1,1,1,N"unix works fine"&lt;BR /&gt;A50,50,0,1,1,1,N"Linux may works fine"&lt;BR /&gt;A50,100,0,1,1,1,N"Windows works some time"&lt;BR /&gt;&lt;BR /&gt;Then it works. &lt;BR /&gt;How can I convert my text file? My programmer is not going to change his application. I have to do some this on my side. Can I create new file in model script?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 10 Apr 2003 14:06:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/non-hp-printer-setup/m-p/2947321#M115004</guid>
      <dc:creator>Technical Support_2</dc:creator>
      <dc:date>2003-04-10T14:06:47Z</dc:date>
    </item>
  </channel>
</rss>

