in reply to Re^2: Redirect output of the system() command
in thread Redirect output of the system() command
You never invoked a shell because you didn't pass a shell command to system
You want
system('sh' => ( '-c' => '"$@" >/dev/null 2>&1', '--', $config->{wkhtmltopdf_path}, @options, $source_file, $config->{result_filename}, ));
This approach handles spaces and other special characters in file names and options.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Redirect output of the system() command
by Gangabass (Vicar) on Jul 11, 2012 at 07:59 UTC |