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 > Java and Shell cpnnectivity code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-03-10, 14:14
kareem_aks kareem_aks is offline
Registered User
 
Join Date: Oct 2010
Posts: 1
Java and Shell cpnnectivity code

Hi I need a help on java implementation where it calls a shell scrit by few paramaters, can some one throw light on how this can be implemented. Thanks in advance. For Eg code snippet:
int k = 10 ; int j =20 // where these values later will be sent dinamically
Process p=Runtime.getRuntime().exec("filename.sh k j");
Reply With Quote
  #2 (permalink)  
Old 10-03-10, 17:02
healdem healdem is online now
Jaded Developer
 
Join Date: Nov 2004
Location: out on a limb
Posts: 9,250
dunno
you could try asking this on a JAVA forum, rather than a Database forum..
...just a thought.

I suppose you could assign the parameters to a stringbuilder object and replace the literal with that string builder object or its text value if you want to be really explicit
__________________
I'd rather be riding my Versys or my Tiger 800 let alone the Norton
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