system( $config->{wkhtmltopdf_path}, @options, $source_file, $config-> +{result_filename}, ">/dev/null", "2>&1" );
Your problem is that you are passing a list to system and when system is passed a list it does not use the shell, but redirection (>/dev/null 2>&1) requires the shell so you have to put everything into a string:
system "$config->{wkhtmltopdf_path} @options $source_file $config->{re +sult_filename} >/dev/null 2>&1";
In reply to Re: Redirect output of the system() command
by jwkrahn
in thread Redirect output of the system() command
by Gangabass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |