IPC::Run or something else?

2006-02-05 Thread Tamas Dober
Hello, I'm a beginner, please forgive me b/c of the simple questions. I'd like to test that that a batch file (starting a Java app) gives me the expected output or not. What I have now: use strict; use warnings; use IPC::Run 'run'; my $out; my @ls = (

Re: IPC::Run or something else?

2006-02-05 Thread Tyler MacDonald
Tamas Dober [EMAIL PROTECTED] wrote: Hello, I'm a beginner, please forgive me b/c of the simple questions. I'd like to test that that a batch file (starting a Java app) gives me the expected output or not. I really like IPC::Run, but it is a bit of a heavy package to make users

Re: IPC::Run or something else?

2006-02-05 Thread David Golden
Tamas Dober wrote: I'd like to test that that a batch file (starting a Java app) gives me the expected output or not. Could you please help me what direction I should go, what module should I use? I've had good experiences with IPC::Run3. It's pretty lightweight and intuitive. If you

Re: IPC::Run or something else?

2006-02-05 Thread Yuval Kogman
On Sun, Feb 05, 2006 at 15:42:26 -0800, Tamas Dober wrote: It seems I couldn't redirect the output. This is probably because the program prints on STDERR. Look into the redirect examples, and try to also capture \$err after \$out - see if that helps Maybe IPC::Run is not a good choice? I

Re: IPC::Run or something else?

2006-02-05 Thread Yuval Kogman
On Mon, Feb 06, 2006 at 18:38:32 +1100, Adam Kennedy wrote: I second this. IPC::Run3 has treated me well on a few occasions, and I'm gradually porting various things of mine over to IPC::Run3 as they come to my attention for other issues. It looks like the ugprade path from IPC::Run3 to