in reply to Package required to execute perl script
by an array of strings:process = Runtime.getRuntime().exec("perl test.perl");
My perl test script looks like this:String [] perlCommand = {"perl","test.perl","1","2","3"}; process = Runtime.getRuntime().exec(perlCommand);
Best wishes.#!/usr/local/bin/perl use strict; use warnings; use Data::Dumper; print Dumper @ARGV;
|
---|