<?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: gunzip doesn't run in shell script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513585#M495822</link>
    <description>&lt;!--!*#--&gt;&amp;gt; /var/tmp/aaaa00219[80]: gunzip: not found.&lt;BR /&gt;&lt;BR /&gt;That's a clue.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] specify the FULL PATH [...]&lt;BR /&gt;&lt;BR /&gt;That's one (good) way.  Doing the same thing&lt;BR /&gt;for "tar" (and every other command) might be&lt;BR /&gt;wise, too.  Or, you could set PATH to&lt;BR /&gt;something which catches all the things which&lt;BR /&gt;you wish to use.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tar: cannot open net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar&lt;BR /&gt;&lt;BR /&gt;While you're fixing things, unless you&lt;BR /&gt;_really_ want the expanded "tar" archive on&lt;BR /&gt;your disk, why not save some disk space?  For&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;gzip -cd &lt;THING&gt;.tar.gz | tar xf -&lt;/THING&gt;</description>
    <pubDate>Wed, 14 Oct 2009 02:58:54 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2009-10-14T02:58:54Z</dc:date>
    <item>
      <title>gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513583#M495820</link>
      <description>I have a script that installs net-snmp. For some reason the gunzip line doesn't complete. Everything else works and the script is successful every time if ran locally. I'm currently pushing this out with an older version of Tivoli.&lt;BR /&gt;&lt;BR /&gt;This is the line that fails:&lt;BR /&gt;gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz&lt;BR /&gt;&lt;BR /&gt;I can't seem to figure out why it's failing on this line. But i know the unzip never seems to complete. It might not be starting.&lt;BR /&gt;&lt;BR /&gt;This is the error output I recieve:&lt;BR /&gt;------Standard Error Output------&lt;BR /&gt;/var/tmp/aaaa00219[80]: gunzip:  not found.&lt;BR /&gt;tar: cannot open net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar&lt;BR /&gt;mv: /usr/local/share/snmp/snmpd.conf: rename: No such file or directory&lt;BR /&gt;./SnmpMaster[3]: /usr/local/sbin/snmpd:  not found.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The lack of the gunzip causes the remaining pieces of the script to fail as well.&lt;BR /&gt;&lt;BR /&gt;I have attached the script&lt;BR /&gt;&lt;BR /&gt;Any input is greatly appreciated.</description>
      <pubDate>Wed, 14 Oct 2009 02:27:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513583#M495820</guid>
      <dc:creator>S Nelson_1</dc:creator>
      <dc:date>2009-10-14T02:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513584#M495821</link>
      <description>It looks like you need to specify the FULL PATH to the gunzip executable.&lt;BR /&gt;&lt;BR /&gt;Something like:&lt;BR /&gt;&lt;BR /&gt;/usr/contrib/bin/gunzip....&lt;BR /&gt;&lt;BR /&gt;or where ever your gunzip is located.</description>
      <pubDate>Wed, 14 Oct 2009 02:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513584#M495821</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-10-14T02:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513585#M495822</link>
      <description>&lt;!--!*#--&gt;&amp;gt; /var/tmp/aaaa00219[80]: gunzip: not found.&lt;BR /&gt;&lt;BR /&gt;That's a clue.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; [...] specify the FULL PATH [...]&lt;BR /&gt;&lt;BR /&gt;That's one (good) way.  Doing the same thing&lt;BR /&gt;for "tar" (and every other command) might be&lt;BR /&gt;wise, too.  Or, you could set PATH to&lt;BR /&gt;something which catches all the things which&lt;BR /&gt;you wish to use.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz&lt;BR /&gt;&lt;BR /&gt;&amp;gt; tar: cannot open net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar&lt;BR /&gt;&lt;BR /&gt;While you're fixing things, unless you&lt;BR /&gt;_really_ want the expanded "tar" archive on&lt;BR /&gt;your disk, why not save some disk space?  For&lt;BR /&gt;example:&lt;BR /&gt;&lt;BR /&gt;gzip -cd &lt;THING&gt;.tar.gz | tar xf -&lt;/THING&gt;</description>
      <pubDate>Wed, 14 Oct 2009 02:58:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513585#M495822</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-10-14T02:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513586#M495823</link>
      <description>Yups...you need to give full path of gunzip else u can specify he path as well in script.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Wed, 14 Oct 2009 02:59:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513586#M495823</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2009-10-14T02:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513587#M495824</link>
      <description>Hi Nelson,&lt;BR /&gt;&lt;BR /&gt; Pls change your script from &lt;BR /&gt;&lt;BR /&gt;gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz&lt;BR /&gt;&lt;BR /&gt;to this&lt;BR /&gt;&lt;BR /&gt;/path/to/gunzip /path/to/HP-UX_B.11.11_9000_800.tar.gz&lt;BR /&gt;&lt;BR /&gt; As per the output, your nodes can neither find where gunzip is nor ur tgz file.&lt;BR /&gt;&lt;BR /&gt;regards,</description>
      <pubDate>Wed, 14 Oct 2009 04:08:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513587#M495824</guid>
      <dc:creator>izad</dc:creator>
      <dc:date>2009-10-14T04:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513588#M495825</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] nor ur tgz file.&lt;BR /&gt;&lt;BR /&gt;No, it couldn't find the ".tar" file, because&lt;BR /&gt;"gunzip" didn't create it by expanding the&lt;BR /&gt;".tar.gz" file.  There never was a ".tgz"&lt;BR /&gt;file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; regards,&lt;BR /&gt;&lt;BR /&gt;Didn't you mean "rgds"?  (Why make _some_ of&lt;BR /&gt;your posting easy to read?)</description>
      <pubDate>Wed, 14 Oct 2009 04:15:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513588#M495825</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-10-14T04:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513589#M495826</link>
      <description>Hi,&lt;BR /&gt;&amp;gt;&amp;gt;/var/tmp/aaaa00219[80]: gunzip: not found.&lt;BR /&gt;&lt;BR /&gt;This error means your shell doesnâ  t find the gunzip command in this case you can give the full path of the gunzip command or else you can set the PATH of gunzip in your existing PATH.&lt;BR /&gt;&lt;BR /&gt;Suraj</description>
      <pubDate>Wed, 14 Oct 2009 04:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513589#M495826</guid>
      <dc:creator>Suraj K Sankari</dc:creator>
      <dc:date>2009-10-14T04:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513590#M495827</link>
      <description>Thanks everyone. This was definitely my problem. I found that the path is not consistent on all of our systems. Which makes sense why it worked on some and not others.&lt;BR /&gt;&lt;BR /&gt;Thanks Again!&lt;BR /&gt;&lt;BR /&gt;Sean</description>
      <pubDate>Wed, 14 Oct 2009 13:29:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/4513590#M495827</guid>
      <dc:creator>S Nelson_1</dc:creator>
      <dc:date>2009-10-14T13:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/7063657#M495828</link>
      <description>&lt;P&gt;Can't we do the same with adding to PATH or something else, rather then giving the whole path ?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2019 06:28:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/7063657#M495828</guid>
      <dc:creator>JASONBANGARAM</dc:creator>
      <dc:date>2019-09-20T06:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: gunzip doesn't run in shell script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/7063959#M495829</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/1983240"&gt;@JASONBANGARAM&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Can't we do the same with adding to PATH or something else, rather then giving the whole path ?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;One reason I can think of for specifying the whole path is that you want to always pick up that command from only that path. For example, you might have both HP-UX tar and GNU tar installed in /usr/bin and /usr/local/bin respectively, but you want to use the GNU tar because of some features you want. The order of the paths you specify in PATH might not always help such situations. Imagine another command with similar HP-UX and GNU versions, only this time you want to use the HP-UX version. The sequence requirements for paths in PATH will be contradictory.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 10:00:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/gunzip-doesn-t-run-in-shell-script/m-p/7063959#M495829</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2019-09-23T10:00:10Z</dc:date>
    </item>
  </channel>
</rss>

