Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Perl won't run command with "|&"

by italdesign (Novice)
on Sep 19, 2013 at 22:19 UTC ( #1054916=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    my $result = `$cmd`;
    
    print "$result\n";
    
  2. or download this
    sh: -c: line 0: syntax error near unexpected token `&'
    sh: -c: line 0: `/usr/bin/wget "http://www.google.com"  |& tee /path/t
    +o/tee.log '
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2014-08-01 09:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (258 votes), past polls