- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- error trying to execute a command using sh
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
02-12-2007 08:33 AM
02-12-2007 08:33 AM
error trying to execute a command using sh
addo:applmgr--> pwd
/u11/oracle/fintestappl/admin/out
addo:applmgr--> sh zip -r xyz.zip appsutil
sh: zip: Execute permission denied.
If I run zip -r without sh it works. One of oracle's program is failing. We don't have source code for that programs it's a java. I am assuming that there program is doing this. Can you see how we can fix this this. I have opened a tar with oracle support also. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 09:34 AM
02-12-2007 09:34 AM
Re: error trying to execute a command using sh
# sh -c "zip -r xyz.zip appsutil"
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 01:24 PM
02-12-2007 01:24 PM
Re: error trying to execute a command using sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 11:33 PM
02-12-2007 11:33 PM
Re: error trying to execute a command using sh
does Oracle internally call that command line?
If yes, it's a bug, of course.
To overcome this:
- check, which PATH setting is active, when this command line is called
- check the location of the real zip binary:
type zip
example: /opt/zip/bin/zip
- create an executable shellscript called zip containing:
/opt/zip/bin/zip "$@"
- place this script in a directory of PATH, that you see before the entry /opt/zip/bin (of the example above)
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2007 11:59 PM
02-12-2007 11:59 PM
Re: error trying to execute a command using sh
Your syntax is incorrect; you need to use the '-c' option to 'sh' to make it accept a command. The way the command stands now, 'sh' expects 'zip' to be a shell script.
PCS