LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-13-2005, 02:17 PM   #1
Grassie Coetzee
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Rep: Reputation: 0
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
 
Old 03-13-2005, 02:20 PM   #2
Adrohak
Member
 
Registered: Jun 2004
Location: Florida
Distribution: Gentoo
Posts: 148

Rep: Reputation: 15
Do you have the file chmodded to be executable? That's the only reason I see for it to respond like that.
 
Old 03-13-2005, 02:31 PM   #3
Grassie Coetzee
LQ Newbie
 
Registered: Mar 2005
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Commands/Shell script ?? paraiso Linux - Newbie 11 04-21-2005 10:58 AM
Use a shell script to do login and other commands jpan Linux - General 15 01-12-2005 06:52 AM
shell script not working sanjith11 Programming 2 07-07-2004 02:55 AM
two commands in a script file not working toastermaker Programming 6 01-04-2004 07:15 AM
why my shell script is not working linuxlah Linux - General 4 08-01-2002 08:39 AM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration