Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Perl won't run command with "|&"

by Anonymous Monk
on Sep 19, 2013 at 22:59 UTC ( #1054918=note: print w/ replies, xml ) Need Help??


in reply to Perl won't run command with "|&"

You have leading whitespace, why is that?

Also, consider the output of perl -V:sh when you're writing your shell commands

This is what you're really executing

/bin/sh /usr/bin/wget "http://www.google.com" |& tee /path/to/tee.lo +g
I think you should try  2>&1 | tee -a ...log


Comment on Re: Perl won't run command with "|&"
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1054918]
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-11-23 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (128 votes), past polls