Find the answer to your Linux question:
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 ...
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    4

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

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...