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?

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 2012-03-08 16:20 +0000
Message-ID <4f58dc33$0$6578$9b4e6d93@newsspool3.arcor-online.net> (permalink)
Organization Arcor

Followups directed to: comp.lang.java.programmer

Show all headers | 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