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

IPC::Run / bash pipe

by ag4ve (Monk)
on Nov 06, 2013 at 23:37 UTC ( #1061497=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
          my $success = run 
              [$echo => -e => "\'" => join("\n", @iptout) => "\'"], 
              '|', [$ipt_cmd => 'iptables-restore'], 
              '>', \my $cmdout, '2>&1';
    
  2. or download this
          my $success = run 
              [$ipt_cmd => 'iptables-restore'], 
              '>', \my $cmdout, '2>&1',
              '<<<', '${', [$echo => -e => "\'" => join("\n", @iptout) => 
    +"\'"], '}';
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1061497]
Approved by ww
Front-paged by tye
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-08-31 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls