- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: zipping doesn't work
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
01-30-2001 03:33 PM
01-30-2001 03:33 PM
zipping doesn't work
gzip -c /u11/oradata/PROD/ar02.dbf > /u10/archive/ar02.dbf.gz
I put in 4 lines at the end of the omniback pre-exec script that does the database shutdown, like:
/usr/local/bin/cpdfiles1 &
/usr/local/bin/cpdfiles2 &
etc. The first time the scripts ran, they worked fine. Each time since then, the scripts run, zipped files are created, all with size 0. The log in omniback which is running the pre-exec script for the backup gives errors for each line like:
/usr/local/bin/cpdfiles1.sh[5]:gzip: not found
No file permissions have changed. The scripts append their own log file with time stamps and status and show no system errors. Can someone tell me what might be going on?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 03:40 PM
01-30-2001 03:40 PM
Re: zipping doesn't work
The gzip executable probably is not in your PATH. Add /usr/contrib/bin to your PATH environment variable and try again. (That's where gzip resides)
Hope this helps,
Rik.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 07:40 PM
01-30-2001 07:40 PM
Re: zipping doesn't work
I would recommend using the full path to gzip, i.e., /usr/contrib/bin/gzip, in your script or else setting PATH in the script. It is too easy for the script to break if it relies on PATH being set outside the script.
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2001 10:17 PM
01-30-2001 10:17 PM
Re: zipping doesn't work
Even if the executable isn't found, the shell redirection you are using (re)creates a 0 length file, that's why you have them.
The reason why it ran the first time is because you most probably started it from an interactive shell, to test it, and that /usr/contrib/bin was in your $PATH.
You may either use the full path to gzip (/usr/contrib/bin/gzip), or modify your PATH (export PATH="$PATH:/usr/contrib/bin") in your script to make sure it will be found.
Best regards,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2001 01:10 PM
01-31-2001 01:10 PM