Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2010
    Location
    Pune
    Posts
    2

    Unanswered: Return value from shell script to java code

    Hello,
    I am executing a shell script thro' java code. I want output value from that shell script. So, is it possible to return a value from shell script to java code? If yes, may I know how to do it?

    Thanks
    Abhay

  2. #2
    Join Date
    Nov 2003
    Posts
    2,933
    Provided Answers: 12
    This is a forum for using databases, not for programming in Java.

    You should post your question in a Java forum

    e.g. here http://www.dbforums.com/java/

    Maybe a mod can move this thread

  3. #3
    Join Date
    Feb 2004
    Location
    In front of the computer
    Posts
    15,579
    Provided Answers: 54
    Moved as requested!

    -PatP
    In theory, theory and practice are identical. In practice, theory and practice are unrelated.

  4. #4
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Quote Originally Posted by abhay_tanu View Post
    I am executing a shell script thro' java code. I want output value from that shell script. So, is it possible to return a value from shell script to java code? If yes, may I know how to do it?
    I'll try to be as specific as you are. The answer to both questions is "yes".
    ---
    "It does not work" is not a valid problem statement.

  5. #5
    Join Date
    Mar 2010
    Location
    Pune
    Posts
    2
    Hi,
    Thanks for your reply. How to get that return value from shell script? may I get any steps or any API's related to that.

    Thanks
    Abhay

  6. #6
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Quote Originally Posted by abhay_tanu View Post
    any API's related to that.
    It's probably the same API you use to invoke the script in the first place.
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

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