LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Commands from shell script not working (https://www.linuxquestions.org/questions/linux-software-2/commands-from-shell-script-not-working-301166/)

Grassie Coetzee 03-13-2005 02:17 PM

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

Adrohak 03-13-2005 02:20 PM

Do you have the file chmodded to be executable? That's the only reason I see for it to respond like that.

Grassie Coetzee 03-13-2005 02:31 PM

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.