The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-19-2007
raccsdl raccsdl is offline
Registered User
  
 

Join Date: Nov 2007
Posts: 8
Call shell script from php not run ?

Hi.

I write a shell script for import data to oracle using sql loader.

I set permission 755 or 777 for that script. I can run that script in the consol okay.

When I call it from PHP using system command. I got return value 126 this value when don't have permission right ?

I check step by step and dicover this line fail : /home/oracle/app/oracle/product/11.1.0/db_2/bin/sqlldr testing/testing@orcl control=$1 bad=$2 log=$3 discard=$4 data=$5 direct=TRUE.

Can anyone help me. this is urgent. Thanks so much.