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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Parent/child Korn shell script help sasaliasim Shell Programming and Scripting 1 05-06-2008 02:09 PM
Include PERL script with in the unix shell script ganapati UNIX for Dummies Questions & Answers 1 04-29-2008 09:18 AM
Using Awk in shell script to extract an index of a substring from a parent string sandeepms17 Shell Programming and Scripting 2 11-07-2007 04:44 AM
How to call a perl script from a shell script anumkoshy Shell Programming and Scripting 2 08-30-2007 01:23 AM
returning to the parent shell after invoking a script within a script gurukottur Shell Programming and Scripting 5 09-26-2006 04:05 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #15  
Old 08-27-2007
Registered User
 

Join Date: Aug 2007
Posts: 10
Thumbs up Finally Found!!!

Hi All,

I tried
Code:
`bash blue.sh`
It works. Thanks all for your suggestions.
Reply With Quote
Forum Sponsor
  #16  
Old 08-27-2007
Registered User
 

Join Date: Aug 2007
Posts: 10
Thumbs up

Quote:
Originally Posted by Neo View Post
Try something like (depending on your shell):

Code:
exec("/bin/ksh -c /full/path/to/blue.sh");
...or something like that, depending on the shell, path and syntax.
This works too! Thanks Neo!
Reply With Quote
  #17  
Old 08-28-2007
Registered User
 

Join Date: Aug 2007
Posts: 1
I'm encountering a similar problem (but with ksh not sh). Using hifake's original example substituting blue.sh with blue.ksh, I'm wanting to 'dot' in the values, and have them available to the perl process.
ie.
blue.ksh
Code:
export JAVA_HOME=/opt/j2sdk1.4.2_02
export PATH=$JAVA_HOME/bin:$PATH
In perl I need to execute the above and be able to run
Code:
printf "Value of JAVA_HOME is %s\n", $ENV{JAVA_HOME};
This is similar to running
. ./blue.ksh
At a command prompt, or within a ksh script.


Any Ideas/suggestions?

Thanks...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:50 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0