1834711 Members
2665 Online
110069 Solutions
New Discussion

command not found ...

 
dave broome_2
Advisor

Re: command not found ...

thanks, I'll take a look at it now.
dave broome_2
Advisor

Re: command not found ...

this is the Metalink document that I used to create my procedures.
Massimo Bianchi
Honored Contributor

Re: command not found ...

Sorry :)

What about the suggestion, of suing absolutes path names ? It should do the trick.

They are standard on unix.... i do not remember if you already tried it.

Massimo
dave broome_2
Advisor

Re: command not found ...

what is meant by absolute path names?
if you mean use /usr/bin/cp instead of just cp then yep, I do that. If something else, what is it?
Massimo Bianchi
Honored Contributor

Re: command not found ...

Was that,

/usr/bin/cp.

Massimo
dave broome_2
Advisor

Re: command not found ...

yep. Is that wrong?
Graham Cameron_1
Honored Contributor

Re: command not found ...

Well I'm stumped. Works fine here.
Where does the "Not found" message come out - on your terminal or to a trace file? Is it coming from the java proc or SQL ?
-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
dave broome_2
Advisor

Re: command not found ...

it's coming when I run the java proc from a SQL prompt. I am using the exec (o/s command); The java procedure returns a failed status and the output message from the procedure is cp or mv not found. The result is that the file on the server has not be moved or copied.
Graham Cameron_1
Honored Contributor

Re: command not found ...

Do you get any ERR> output when it fails?
Does it let you do "ps -fuoracle" ?
Or just "ps" ?
Then at least you could see what shell you have.
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
Graham Cameron_1
Honored Contributor

Re: command not found ...

Dave
Did you solve this or have you given up?
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
dave broome_2
Advisor

Re: command not found ...

it has been solved by writing different java scripts that use java commands to do a specific task rather than one that takes any O/S command. Thanks for your help.