Commands from shell script not working
I am trying to execute the following script:
PATH=$PATH:/opt/oracle/bin export PATH ORACLE_HOME=/opt/oracle/ export ORACLE_HOME ORACLE_SID=avrs export ORACLE_SID # sqlplus arts02/virtual <<! @/usr/cdudata/tt.sql exit ! The result Iam getting is ./do_sql: 134855424: Permission denied Even doing a basic ll command from the script is not working.. I have all the rights etc. but don't understand the problem. Can somebody please help me. Thanks |
Do you have the file chmodded to be executable? That's the only reason I see for it to respond like that.
|
Thanks for the response.
Yes the file is executable but I don't understand the problem. I can't even do a 'ls' or any command from a script. |
All times are GMT -5. The time now is 08:54 PM. |