Results 1 to 2 of 2
Hiya all,
Simple question - yet no simple answer im afraid !
Is there a way to execute a shell script (child) which returns one line and get the current ...
- 04-02-2008 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 4
Executing stdout ???
Hiya all,
Simple question - yet no simple answer im afraid !
Is there a way to execute a shell script (child) which returns one line and get the current (parent) shell to execute the stdout from the child ???
example
child.sh
#!/bin/sh
echo "setenv DISPLAY xxx:03"
parent_prompt> ./child.sh
setenv DISPLAY xxx:03 #<--- parent would exe this line ????
many many thanks in advance for your feedback effort support and time in this .....
- 04-02-2008 #2
The answer to your question is right here, embedded in a wonderful document about bash that you really should read.
Hope this helps.--
Bill
Old age and treachery will overcome youth and skill.


Reply With Quote