- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gunzip doesn't run in shell script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:27 PM
10-13-2009 07:27 PM
This is the line that fails:
gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
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.
This is the error output I recieve:
------Standard Error Output------
/var/tmp/aaaa00219[80]: gunzip: not found.
tar: cannot open net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar
mv: /usr/local/share/snmp/snmpd.conf: rename: No such file or directory
./SnmpMaster[3]: /usr/local/sbin/snmpd: not found.
The lack of the gunzip causes the remaining pieces of the script to fail as well.
I have attached the script
Any input is greatly appreciated.
Solved! Go to Solution.
- Tags:
- gunzip
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:58 PM
10-13-2009 07:58 PM
Re: gunzip doesn't run in shell script
That's a clue.
> [...] specify the FULL PATH [...]
That's one (good) way. Doing the same thing
for "tar" (and every other command) might be
wise, too. Or, you could set PATH to
something which catches all the things which
you wish to use.
> gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
> tar: cannot open net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar
While you're fixing things, unless you
_really_ want the expanded "tar" archive on
your disk, why not save some disk space? For
example:
gzip -cd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 07:59 PM
10-13-2009 07:59 PM
Re: gunzip doesn't run in shell script
BR,
Kapil+
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 09:08 PM
10-13-2009 09:08 PM
Re: gunzip doesn't run in shell script
Pls change your script from
gunzip net-snmp-5.4-1-HP-UX_B.11.11_9000_800.tar.gz
to this
/path/to/gunzip /path/to/HP-UX_B.11.11_9000_800.tar.gz
As per the output, your nodes can neither find where gunzip is nor ur tgz file.
regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 09:15 PM
10-13-2009 09:15 PM
Re: gunzip doesn't run in shell script
No, it couldn't find the ".tar" file, because
"gunzip" didn't create it by expanding the
".tar.gz" file. There never was a ".tgz"
file.
> regards,
Didn't you mean "rgds"? (Why make _some_ of
your posting easy to read?)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 09:20 PM
10-13-2009 09:20 PM
Re: gunzip doesn't run in shell script
>>/var/tmp/aaaa00219[80]: gunzip: not found.
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.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2009 06:29 AM
10-14-2009 06:29 AM
Re: gunzip doesn't run in shell script
Thanks Again!
Sean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 11:28 PM
09-19-2019 11:28 PM
Re: gunzip doesn't run in shell script
Can't we do the same with adding to PATH or something else, rather then giving the whole path ?
- Tags:
- PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-23-2019 03:00 AM
09-23-2019 03:00 AM
Re: gunzip doesn't run in shell script
@JASONBANGARAM wrote:Can't we do the same with adding to PATH or something else, rather then giving the whole path ?
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.
--
ranga
[i work for hpe]