Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Possible Limitation Condor vs Perl / IPC::open3
- Date: Sun, 27 Feb 2005 19:08:53 -0800 (PST)
- From: filipdef@xxxxxxxxxxxxxxxxx
- Subject: Re: [Condor-users] Possible Limitation Condor vs Perl / IPC::open3
....
> Filip, you mentionned you were using java to do similar things. I have not
> used Java....
> Is it complex to achieve? pretty sure it is not ;)
> I can send you my perl wrapper, so you can see what I am achieving with
> it.
It's not that hard.. I'm more than happy to add your stuff to the
gui / show you how it's done in java. Btw, finally succeeded in getting the
GUI to run as a separate appplication, so it'll be available soon (monday
or tuesday).
Here's very rough how to execute a process in Java:
String[] cmdLine = new String[] {"something", "arg1"};
Process p = Runtime.getRuntime().exec(cmdLine, env, initDir);
// access in/out of process via p.getInputStream(), p.getErrorStream()
p.waitFor();
Cheers,
- Filip