- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- command not found ...
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
10-12-2003 10:17 PM
10-12-2003 10:17 PM
command not found ...
Any help gratefully received.
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:25 PM
10-12-2003 10:25 PM
Re: command not found ...
Some commands, see "man ..." for details, are built in the sheel, while others are external.
I think that your plsql procedure works only with the built-in commands, and not with the external ones.
You can try adding ENV variables, to add search path, but i suspect the firt reason.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:27 PM
10-12-2003 10:27 PM
Re: command not found ...
Most likely though, it is something in the .profile of the user that starts the application. It would seem to be intentional though because "ls" and "mv", by default are in the same directory. See if you can see if you are running your own copies of the tools you can use an not the system ones. Try /usr/bin/mv instead of just mv. One more thing, see if you have a "." in the beginning of your PATH.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:37 PM
10-12-2003 10:37 PM
Re: command not found ...
SQL> exec executecmd('/usr/bin/echo $0');
OUT>$0
ExitValue: 0
It's as if it is only allowing a "restricted" login to certain users?? Does this make any sense? I don't know what user Oracle uses to run it's java stuff remotely. If it is restricted how do I make it un-restricted?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:41 PM
10-12-2003 10:41 PM
Re: command not found ...
This forces a new shell to start and the echo command will be run by that shell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:45 PM
10-12-2003 10:45 PM
Re: command not found ...
SQL> exec executecmd('/usr/bin/sh -c "echo $0"');
OUT>
ExitValue: 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:45 PM
10-12-2003 10:45 PM
Re: command not found ...
exec executecmd('/usr/bin/csh -s "cp first second"');
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:49 PM
10-12-2003 10:49 PM
Re: command not found ...
In that case try Massimo's thing. You can use the csh -s or the sh -c as in my previous post. Whichever "floats your boat"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 10:58 PM
10-12-2003 10:58 PM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:17 PM
10-12-2003 11:17 PM
Re: command not found ...
exec executecmd('/usr/bin/csh -c "cp first second"');
otherwise, with the -s, the shell will wait for other input.
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:28 PM
10-12-2003 11:28 PM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:31 PM
10-12-2003 11:31 PM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:39 PM
10-12-2003 11:39 PM
Re: command not found ...
SQL> exec dave
/usr/bin/csh -c
"cp /home/oracle/files/a.a /home/oracle/files/b.b"
ERR>Unmatched "
ExitValue: 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:43 PM
10-12-2003 11:43 PM
Re: command not found ...
SQL> GRANT JAVAUSERPRIV TO YOUR_USER;
--
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:46 PM
10-12-2003 11:46 PM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2003 11:59 PM
10-12-2003 11:59 PM
Re: command not found ...
exec executecmd(/usr/bin/sh -c "cp file1 file2");
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:22 AM
10-13-2003 12:22 AM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:31 AM
10-13-2003 12:31 AM
Re: command not found ...
Haven't got it working yet but there is a lot of information being logged to USER_DUMP_DEST_AREA.
Does this help?
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:35 AM
10-13-2003 12:35 AM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:49 AM
10-13-2003 12:49 AM
Re: command not found ...
Looks like a sintax problem...
i suggest to check using and echo:
exec executecmd('/usr/bin/sh -c "echo \"cp file1 file2\""');
we want this output:
"cp file1 file2"
untill we fix this there is no chance to get it work.
What is the output you get ?
Massimo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:58 AM
10-13-2003 12:58 AM
Re: command not found ...
Try this
--
select * from dba_java_policy
where GRANTEE =
--
Look at the NAME and ACTION fields.
Compare with the working system.
I have had to add grants to allow my script to work.
(The clue was in the .trc files under USER_DUMP_DEST).
Hope that helps.
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 12:59 AM
10-13-2003 12:59 AM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 01:05 AM
10-13-2003 01:05 AM
Re: command not found ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 01:07 AM
10-13-2003 01:07 AM
Re: command not found ...
http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96656/security.htm#1006434
Can't do any more on this today - work calls - although this is much more interesting!!
-- Graham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2003 01:14 AM
10-13-2003 01:14 AM
Re: command not found ...
Massimo