🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1488

Re: Detecting when a process is finished

#1488
From: John McGrath TeamB
Date: Mon, 31 Dec 2001 14:23
17 lines
1315 bytes
On Mon, 31 Dec 2001 08:37:11 +0200, Hanan Hermon wrote:

> I would like to run an external process using Runtime
> class (exec method) and get notification when it is done
> (by blocking or callback).

The exec() method returns a Process object.  Calling waitFor() on 
this object will block until it completes and return the exit status.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.169a3ee7677bcbe398af6b@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!KWeb!dnews
References: <3c300794_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,70f9914a267a876b
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-12-31 06:26:49 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: Detecting when a process is finished
Date: Mon, 31 Dec 2001 09:23:22 -0500
Message-ID: <MPG.169a3ee7677bcbe398af6b@forums.borland.com>
References: <3c300794_1@dnews>
X-Newsreader: MicroPlanet Gravity v2.60
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 1009808602 209.92.40.60 (31 Dec 2001 06:23:22 -0800)
Lines: 17
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!hub.org!hub.org!PeerFeed.KWeb.on.ca!KWeb!dnews