[271] in java-interest

home help back first fref pref prev next nref lref last post

exec/join question

daemon@ATHENA.MIT.EDU (David Gourley)
Sat Jun 10 16:39:49 1995

Date: Sat, 10 Jun 1995 13:11:16 -0700
From: David Gourley <dgourley@CSUA.Berkeley.EDU>
To: java-interest@java.sun.com


Hello,

I am having a slight problem using java's exec routines and I was
wondering if any of you might be able to help me out. I have to 
execute systems commands withing my java app, the problem is that
if java executes to quickly then race conditions exist for the
system commands. Basically I need to do something like:
        
        Join(Exec("process foo"));
        // now run the next command
        Join(Exec("process bar"));

Thread join does not seem to help here since I am executing a call
that once executed is not "part" of the java process. Anyone have
a solution to this? Thanks for any replies.

-David Gourley
dgourley@csua.berkeley.edu

-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post