If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > JAVA > Return value from shell script to java code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-10, 09:09
abhay_tanu abhay_tanu is offline
Registered User
 
Join Date: Mar 2010
Location: Pune
Posts: 2
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
Reply With Quote
  #2 (permalink)  
Old 03-15-10, 09:20
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
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
Reply With Quote
  #3 (permalink)  
Old 03-15-10, 14:33
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,606
Moved as requested!

-PatP
__________________
In theory, theory and practice are identical. In practice, theory and practice are unrelated.
Reply With Quote
  #4 (permalink)  
Old 03-15-10, 16:22
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
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".
Reply With Quote
  #5 (permalink)  
Old 03-17-10, 01:01
abhay_tanu abhay_tanu is offline
Registered User
 
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
Reply With Quote
  #6 (permalink)  
Old 03-17-10, 08:57
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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