[266] in java-interest
join/exec problem
daemon@ATHENA.MIT.EDU (David Gourley)
Sat Jun 10 00:55:22 1995
From: David Gourley <dgourley@dawn0.CS.Berkeley.EDU>
To: java-interest@java.sun.com
Cc: dgourley@now.cs.berkeley.edu
Date: Fri, 09 Jun 1995 21:32:44 -0700
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@now.cs.berkeley.edu
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com