Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: Redirect output of the system() command

by ikegami (Pope)
on Jul 11, 2012 at 06:27 UTC ( #981024=note: print w/replies, xml ) Need Help??

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
    Same error as before (I'm sure wkhtmltopdf just grab all arguments): Error: Failed loading page http: (sometimes it will work just to ignore this error with --load-error-handling ignore)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981024]
[james28909]: how come it is so easy for me to not care what others think while others will mute themselves because they are scare they will be called ignorant or stupid
[james28909]: do you relize how shrodinger felt when he was describing the quantum world? what about neils bohr?
[holli]: it's probably the autist in you. I am like that too, no fucks given about what others think about me
james28909 checks, yep... htere are no fucks to give
[james28909]: another thing i am sick of is hurting others feelings
[1nickt]: james28909 You lost me a bit when you said "show me evolution from intelligence to ignorance". I guess we would have to define the terms, but as I look around at my species and how we are destroying our habitat ...
[james28909]: seems like a person cant even have a belief without hurting someones feelings. i never said my way is the only way. i just said i have pretty good scientific evidence, and then asked for opposing side to present evidence
[james28909]: was downvoted and left without a reply. go figure

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2017-12-15 14:26 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.