<?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: Error code prints on job in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954987#M116875</link>
    <description>Look at line 97 of /etc/lp/interface/lp80 and you'll see an if statement. You'll have to backtrack to see why the test is incomplete, but as mentioned, an undefined variable will cause this problem. lp80 doesn't seem to be a standard lp script so it must have been custom-written.</description>
    <pubDate>Fri, 18 Apr 2003 18:54:51 GMT</pubDate>
    <dc:creator>Bill Hassell</dc:creator>
    <dc:date>2003-04-18T18:54:51Z</dc:date>
    <item>
      <title>Error code prints on job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954984#M116872</link>
      <description>/etc/lp/interface/lp80[97]: test: Specify a parameter with this command. &lt;BR /&gt;&lt;BR /&gt;This is: &lt;BR /&gt;HP-UX B.10.20 D 9000/861 2011712250 64-user license. &lt;BR /&gt;&lt;BR /&gt;This is a serial printer attached to a concentrator. &lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 18 Apr 2003 18:29:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954984#M116872</guid>
      <dc:creator>scott_170</dc:creator>
      <dc:date>2003-04-18T18:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error code prints on job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954985#M116873</link>
      <description>What command did you run that generated this error?</description>
      <pubDate>Fri, 18 Apr 2003 18:41:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954985#M116873</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2003-04-18T18:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error code prints on job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954986#M116874</link>
      <description>Check the script   /etc/lp/interface/lp80 for an if statement that uses an unquoted variable:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;if [ -z $VAR ]&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;In such a command, the test command (the part from [ to ]) requires a parameter for the comparison.  If the variable VAR is empty (or undefined) then the test command evaluates to &lt;BR /&gt;&lt;BR /&gt;if [ -z ] &lt;BR /&gt;&lt;BR /&gt;which results in the syntax error you are seeing.&lt;BR /&gt;&lt;BR /&gt;You can also put&lt;BR /&gt;&lt;BR /&gt;set -x&lt;BR /&gt;&lt;BR /&gt;at the top for your script to get debugging info printed out.</description>
      <pubDate>Fri, 18 Apr 2003 18:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954986#M116874</guid>
      <dc:creator>Bill Douglass</dc:creator>
      <dc:date>2003-04-18T18:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error code prints on job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954987#M116875</link>
      <description>Look at line 97 of /etc/lp/interface/lp80 and you'll see an if statement. You'll have to backtrack to see why the test is incomplete, but as mentioned, an undefined variable will cause this problem. lp80 doesn't seem to be a standard lp script so it must have been custom-written.</description>
      <pubDate>Fri, 18 Apr 2003 18:54:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954987#M116875</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-04-18T18:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error code prints on job</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954988#M116876</link>
      <description>The interface script is the "dumb" script.  &lt;BR /&gt;&lt;BR /&gt;The command I ran was just&lt;BR /&gt;lp -dlp80 test (A text test page I created) Any print to it produces this.&lt;BR /&gt;&lt;BR /&gt;I couldn't find the variable in question.  &lt;BR /&gt;&lt;BR /&gt;I am not as familiar with HP-Unix as others (SCO, AIX).  So I created this printer thusly:&lt;BR /&gt;&lt;BR /&gt;  I created the "spool" (via SAM) then checked it's major/minor numbers took those and created the device /dev/lp80.  &lt;BR /&gt; &lt;BR /&gt;Thanks Scott&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Apr 2003 20:36:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-code-prints-on-job/m-p/2954988#M116876</guid>
      <dc:creator>scott_170</dc:creator>
      <dc:date>2003-04-21T20:36:43Z</dc:date>
    </item>
  </channel>
</rss>

