Operating System - HP-UX
1834374 Members
2264 Online
110066 Solutions
New Discussion

Re: Unable to execute script from current location.

 
Shawn Jones_4
Occasional Advisor

Unable to execute script from current location.

I have a clustered environment that I am re-configuring. All servers are 11.0. I have an id that on server A can execute the following ". /opt/oracle/scripts/setora". When I try this on server B, I get a file not found error message. The id is running in ksh. Can any explain why the command works on one server and not on the other?
3 REPLIES 3
Jeroen Peereboom
Honored Contributor

Re: Unable to execute script from current location.

L.S.

I can hink of 2 issues:
- The file /opt/.../setora does not exists on server B
- If setora is a script, is the first line something like #!/..../...sh and does it refer to a non-existing shell?

JP.
Shawn Jones_4
Occasional Advisor

Re: Unable to execute script from current location.

setora exists on all servers. but there is no shell definition at the head of the script. Should there be?
Marvin Strong
Honored Contributor

Re: Unable to execute script from current location.

If the script exists, it could be the in the script it is looking for a file that does not exist.

Verify that all files the script looks for are present on the server in question.