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.

I suspect that you have to manage your environment variables from within your script.
Doing that should ease your pain.

Fella's, didn't the forum have a similar issue with a script returning "value 126" for someone else in the past month?

Found it, not quite the same, though similar...

http://www.unix.com/hp-ux/44525-cron-not-working-properly.html