The UNIX and Linux Forums  

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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
URL call from SHELL script chengwei Shell Programming and Scripting 37 04-15-2009 10:52 PM
To call/execute a shell script from a shell script konark UNIX for Dummies Questions & Answers 1 10-26-2007 06:16 PM
how can i call a shell script from pl/sql rajesh.P Shell Programming and Scripting 3 09-17-2007 12:09 AM
how can a call shell script from pl/sql rajesh.P UNIX for Dummies Questions & Answers 0 09-14-2007 03:42 AM
How to call a shell script from awk ? Amruta Pitkar Shell Programming and Scripting 1 04-20-2007 05:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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.
  #2 (permalink)  
Old 11-19-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
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?
  #3 (permalink)  
Old 11-19-2007
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
Found it, not quite the same, though similar...

Cron - Not working properly
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:41 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0