<?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: scripting on HP-UX 11 in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546305#M875449</link>
    <description>I'm just taking a guess here,&lt;BR /&gt;you should sepearte the lines and use set -x to help debug the script but it is possible that LOCPATCHBIN refers to the software distributor directory that changed from 10.20 to 11.00&lt;BR /&gt;/var/adm/sw on the two OSes is structured differently.&lt;BR /&gt;You may want to look into that.&lt;BR /&gt;For error numbers look for errno.h&lt;BR /&gt;and/or the return codes of the application from the RETURNS section of the man for each command.. when you find out from the debug set -x which one has failed.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
    <pubDate>Thu, 28 Jun 2001 11:31:04 GMT</pubDate>
    <dc:creator>Bill McNAMARA_1</dc:creator>
    <dc:date>2001-06-28T11:31:04Z</dc:date>
    <item>
      <title>scripting on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546304#M875448</link>
      <description>Is there any reason why the same string inside a script (performing uncompress and untar) should success in HP-UX 10 and any other Unix but fail on HP-UX 11?&lt;BR /&gt;HP-UX B.11.00 U 9000/800&lt;BR /&gt;&lt;BR /&gt;Line:&lt;BR /&gt;(uncompress &amp;lt; ${LOCPATCHBIN}.Z ; echo $? &amp;gt; /tmp/err$$) | (cd $TEMPDIR; tar -xf - )&lt;BR /&gt;Even more:&lt;BR /&gt;While uncompress terminates normally if launched by hand, during the script it terminates with error code 141 (whose meaning I do not know).&lt;BR /&gt;Thank you for your help&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Xavier Giannakopoulos&lt;BR /&gt;Tivoli Systems Inc.&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Jun 2001 11:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546304#M875448</guid>
      <dc:creator>Xavier Giannakopoulos</dc:creator>
      <dc:date>2001-06-28T11:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: scripting on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546305#M875449</link>
      <description>I'm just taking a guess here,&lt;BR /&gt;you should sepearte the lines and use set -x to help debug the script but it is possible that LOCPATCHBIN refers to the software distributor directory that changed from 10.20 to 11.00&lt;BR /&gt;/var/adm/sw on the two OSes is structured differently.&lt;BR /&gt;You may want to look into that.&lt;BR /&gt;For error numbers look for errno.h&lt;BR /&gt;and/or the return codes of the application from the RETURNS section of the man for each command.. when you find out from the debug set -x which one has failed.&lt;BR /&gt;&lt;BR /&gt;Later,&lt;BR /&gt;Bill</description>
      <pubDate>Thu, 28 Jun 2001 11:31:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546305#M875449</guid>
      <dc:creator>Bill McNAMARA_1</dc:creator>
      <dc:date>2001-06-28T11:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: scripting on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546306#M875450</link>
      <description>Thank you very much for your answer. In fact it corresponds mainly to things that I already tried.&lt;BR /&gt;I did the set -x.&lt;BR /&gt;LOCPATCHBIN is computed by the script, and is right.&lt;BR /&gt;About the return code, I did not find any mention of code 141 neither in errno.h and various subincludes, nor in compress manpage. Maybe I have to download the source code for compress...&lt;BR /&gt;And finally I am sure that uncompress is failing because the output says so, and the script is making the difference between the two parts of the command.&lt;BR /&gt;I wanted to know if there is a reason why the same line in a script would fail if using a pipe, but success if using a temporary file.&lt;BR /&gt;&lt;BR /&gt;Thanks again, Xavier</description>
      <pubDate>Mon, 02 Jul 2001 12:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546306#M875450</guid>
      <dc:creator>Xavier Giannakopoulos</dc:creator>
      <dc:date>2001-07-02T12:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: scripting on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546307#M875451</link>
      <description>Hi Xavier,&lt;BR /&gt;&lt;BR /&gt;Have you tried the following ?&lt;BR /&gt;&lt;BR /&gt;zcat ${LOCPATCHBIN}.Z |(cd $TEMPDIR; tar -xf -) &lt;BR /&gt;&lt;BR /&gt;I've tried this on 11.0 and it works&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Dan&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2001 13:23:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546307#M875451</guid>
      <dc:creator>Dan Hetzel</dc:creator>
      <dc:date>2001-07-02T13:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: scripting on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546308#M875452</link>
      <description>Nope, no change:&lt;BR /&gt;&lt;BR /&gt;+ zcat /var/xxxxxx.tar.Z&lt;BR /&gt;+ cd /var/xxxxxxxx.8971&lt;BR /&gt;+ tar -xf -&lt;BR /&gt;+ tar_ret=0&lt;BR /&gt;+ + cat /tmp/err8971&lt;BR /&gt;+ echo 141&lt;BR /&gt;+ 1&amp;gt; /tmp/err8971&lt;BR /&gt;uncompress_ret=141&lt;BR /&gt;+ rm -f /tmp/err8971&lt;BR /&gt;+ [ 141 -ne 0 ]&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Jul 2001 15:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546308#M875452</guid>
      <dc:creator>Xavier Giannakopoulos</dc:creator>
      <dc:date>2001-07-02T15:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: scripting on HP-UX 11</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546309#M875453</link>
      <description>&lt;BR /&gt;The error coed 141 appears, because the uncompress was terminated after receiving signal 13 (128+13==141) SIGPIPE.&lt;BR /&gt;&lt;BR /&gt;That happens, if the process after the pipe closes its STDIN before uncompress is finished.&lt;BR /&gt;Maybe tar doesn't do what you want?</description>
      <pubDate>Tue, 03 Jul 2001 08:47:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/scripting-on-hp-ux-11/m-p/2546309#M875453</guid>
      <dc:creator>Klaus Crusius</dc:creator>
      <dc:date>2001-07-03T08:47:26Z</dc:date>
    </item>
  </channel>
</rss>

