in reply to Re: running jar file with multiple arguments in perl
in thread running jar file with multiple arguments in perl

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re^2: running jar file with multiple arguments in perl

Replies are listed 'Best First'.
Re^3: running jar file with multiple arguments in perl
by Anonymous Monk on May 29, 2010 at 10:11 UTC
    No , I've never used Expect. The entire idea of expecting a monkey to type in responses goes against the idea of computers -- its fine as an option, but not as the only option.
      Ok.Noted. Thanks. Is anyone got also a better idea how to do this? help will be very much appreciated. Thanks.
        Those are your only choices, imitate a monkey with Expect, or find (or make) the @ARGV interface
Re^3: running jar file with multiple arguments in perl
by compiler9999 (Initiate) on May 29, 2010 at 10:08 UTC
    btw, ive also try :
    OPEN PIPE, "|java -jar program.jar"; open FH, /abc.txt while (my $res = <FH>) print PIPE "$res"; close FH; close PIPE;