- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gtar script problem
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
Forums
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
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
07-01-2003 04:05 AM
07-01-2003 04:05 AM
gtar script problem
I have a script(attached) which extracts SSH packages from the path /stor/common/src/makehost/DIST/hp9000/hpux/11.00/ssh/B.11.00. into the respective areas of the local machine i.e. /usr/bin, /etc.
The path above is in the NFS area. However, when I executed the attached script, it produced the error shown below.
Moreover, the function checkSSHd in the script is not even executed.
Could someone point to me where and how I could solve these problems? I had tried executing the gzip command with exact options specified in the script on the command line and found no error to it.
Thanks in advance
# ./DO.bak.1
/stor/common/src/makehost/DIST/hp9000/hpux/11.00/ssh
B.11.00
Extracting binary files ...
/stor/common/src/makehost/DIST/hp9000/hpux/11.00/ssh/B.11.00
tar (child): Cannot exec gzip: No such file or directory
tar (child): Error is not recoverable: exiting now
/usr/intel/bin/gtar: Child returned status 2
/usr/intel/bin/gtar: Error exit delayed from previous errors
tar (child): Cannot exec gzip: No such file or directory
tar (child): Error is not recoverable: exiting now
./
scp
sftp
sftp-server
sftp2
tar (child): Cannot exec gzip: No such file or directory
tar (child): Error is not recoverable: exiting now
tar (child): Cannot exec gzip: No such file or directory
tar (child): Error is not recoverable: exiting now
./
/usr/intel/bin/gtar: Child returned status 2
/usr/intel/bin/gtar: Error exit delayed from previous errors
sshd
sshd2
tar (child): Cannot exec gzip: No such file or directory
tar (child): Error is not recoverable: exiting now
tar (child): Cannot exec gzip: No such file or directory
tar (child): Error is not recoverable: exiting now
./
/usr/intel/bin/gtar: Child returned status 2
/usr/intel/bin/gtar: Error exit delayed from previous errors
man1/
man1/scp.1
man1/sftp-server.1
man1/sftp.1
man1/ssh-add.1
man1/ssh-agent.1
man1/ssh-askpass.1
man1/ssh-keygen.1
man1/ssh-probe.1
man1/ssh-signer.1
man1/ssh.1
man1/ssh-add2.1
x /etc/ssh2/sshd2_config, 4327 bytes, 9 tape blocks
x /etc/ssh2/ssh_dummy_shell.out, 122 bytes, 1 tape blocks
x /etc/ssh2/ssh2_config, 1950 bytes, 4 tape blocks
kill: 23220: The specified process does not exist.
kill: 23223: The specified process does not exist.
Postinstallation ...
Creating symbolic links ...
Done.
Checking s750sshd link ...
#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 04:55 AM
07-01-2003 04:55 AM
Re: gtar script problem
If you are using gnu tar then you don't have to or rather can't use gtar -tzvf.
instead the z option in tar tells tar to use its built in gzip function to either extract the file or compress it.
I would change the gtar to just
tar -xzvf
or
tar -czvf
peace
Donny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 05:27 AM
07-01-2003 05:27 AM
Re: gtar script problem
in shel scripts. functions goes at the top.
before it is called.
sshme () {
}
sshme
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 07:00 AM
07-01-2003 07:00 AM
Re: gtar script problem
it is possible that gtar calls gzip utility,
you must put in your path the gzip command, it could be installed in /usr/contrib/bin and not in path.
The easiest way to put in in the path is to make a symbolic link between the existing gzip and another one in /bin or /usr/bin.
if you have not installed gzip, go to:
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gzip-1.3.3/
HTH.
Frank.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2003 11:39 PM
07-01-2003 11:39 PM
Re: gtar script problem
gtar has NO gzip builtin! And no compress builtin
and no other compression builtin.
It always relys on the installed compressor.
It's just the integration which is builtin :-)
Do a tar -ztvf and check the processes with ps -ef!
You will find a gtar and a gzip started as a child by gtar.
The error message looks quite clear. gzip is not found in the path.
Add the gzip path in the PATH variable IN the script,
don't assume it's set by the current environment!
Armin