Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Help > Re: java progra...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 15948 of 16566
Post > Topic >>

Re: java program that starts unix script & then ends

by Lew <lew@[EMAIL PROTECTED] > Apr 9, 2008 at 07:53 AM

Etantonio multi-posted ...
>> Good morning,

Where?

>> I need to start a unix script from a java [sic] program, for this I
used
>> these instructions :
>>
>>               Runtime rt=Runtime.getRuntime();
>>               try {
>>                       Process proc=rt.exec("sh
/root/scriptTestANDO.sh");
>>               } catch (IOException e) {
>>                       e.printStackTrace();
>>               }

Two, or maybe up to four, spaces per indent is enough.  Sixteen-plus is
excessive.

>> it works ok,
>> but I need that the script still run also if the java program ends,
>> how I can arrange this ??

Nigel Wade wrote:
> Please don't multi-post. You're unlikely to get the answer you want. See
the
> other thread you started in comp.lang.java.help.
> 
> If you really, really, must post to more than one group then cross-post.

Etantonio, there is an FAQ post to these two groups every five days by
David 
Alex Lamb.  There's no reason to miss it.  It explains much, and links to
more 
sources that explain more, about how to interact with these newsgroups.

There's no reason to miss it.

-- 
Lew
 




 3 Posts in Topic:
Re: java program that starts unix script & then ends
Lew <lew@[EMAIL PROTEC  2008-04-09 07:53:02 
Re: java program that starts unix script & then ends
=?UTF-8?B?QXJuZSBWYWpow7h  2008-04-09 23:07:05 
Re: java program that starts unix script & then ends
Lew <lew@[EMAIL PROTEC  2008-04-09 23:19:10 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 15:43:58 CST 2008.