Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #12769

How to call an external script/prgm and wait until execution is finished?

Path csiph.com!usenet.pasdenom.info!goblin1!goblin.stu.neva.ru!feed.xsnews.nl!border-3.ams.xsnews.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
From Svenfischer2@email.com (Sven Fischer)
Newsgroups comp.lang.java.programmer
Subject How to call an external script/prgm and wait until execution is finished?
Followup-To comp.lang.java.programmer
Date 08 Mar 2012 16:20:03 GMT
Lines 11
Message-ID <4f58dc33$0$6578$9b4e6d93@newsspool3.arcor-online.net> (permalink)
Organization Arcor
NNTP-Posting-Date 08 Mar 2012 17:20:03 CET
NNTP-Posting-Host f4857b24.newsspool3.arcor-online.net
X-Trace DXC=4TLREl]\:lkf1oJaJ0@dmgMcF=Q^Z^V3h4Fo<]lROoRa8kF<OcfhCOknDElJ<iNdUnQL4QcO2CM4a9AW^;nKDM<o0@o;XA;O\Kaon<10^T_X`i
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.java.programmer:12769

Followups directed to: comp.lang.java.programmer

Show key headers only | View raw


I want to call from inside a java program an external script (resp. prgm) and wait
until the execution is finished (successfuly or not).

How can I do this?

For simplicity assume the external script is either an DOS batch scipt (Windows) or shell script (Linux).

How can I ask from inside the Java program for the return/exit code?

Sven

Back to comp.lang.java.programmer | Previous | NextNext in thread | Find similar


Thread

How to call an external script/prgm and wait until execution is finished? Svenfischer2@email.com (Sven Fischer) - 2012-03-08 16:20 +0000
  Re: How to call an external script/prgm and wait until execution is finished? Arne Vajhøj <arne@vajhoej.dk> - 2012-03-08 11:26 -0500
  Re: How to call an external script/prgm and wait until execution is finished? Roedy Green <see_website@mindprod.com.invalid> - 2012-03-08 16:59 -0800

csiph-web