Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by Gangabass (Vicar)
on Jul 11, 2012 at 05:33 UTC ( #981015=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my @options = qw(
        
    ...
    $config->{result_filename} =~ s{ }{\\ }g;
    my $command = "(" . join(" ", $config->{wkhtmltopdf_path}, @options, $
    +source_file, $config->{result_filename}) . ")";
    system( "/bin/bash -c \"$command\" >/dev/null 2>&1" );
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://981015]
help
Chatterbox?
[choroba]: Yeah, my wife sent me some pictures of the children yesterday, and there was snow all around. 10 days in Saigon and I totally forgot what weather they have back there.

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2017-02-23 17:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (350 votes). Check out past polls.