I am using a system command in Perl to execute java. I have formed an array @args that have different options to execute a jar file. Something like below:
$args[0] = $rootpath."/jre/bin/java";
$args[1] = " -jar \"".$rootpath."/temp/abc.jar\"";
$args[2] = " INP=\"".$inputfilename."\"";
$args[3] = " OUT=\"".$outputfilename."\"";
system(@args);
This gives a popup window when executed which I want to suppress and want it to run in background. I want this to be suppressed in Linux also. I tried using tild but it didn't helped as below.
my $command = @args;
$output = `$command`;
Please help in figuring this out.