Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Unsuccessfully passing arguments to a bash command

by Happy-the-monk (Abbot)
on Jun 15, 2013 at 21:17 UTC ( #1039157=note: print w/replies, xml ) Need Help??


in reply to Unsuccessfully passing arguments to a bash command

this does it for me:

perl -e'print qx(bash -ic "untouchable john mike bill");'

So it was about the right quoting to protect it from the shell.

Cheers, Sören

(hooked on the Perl Programming language)

Replies are listed 'Best First'.
Re^2: Unsuccessfully passing arguments to a bash command
by zapatafa (Initiate) on Jun 15, 2013 at 21:48 UTC
    Works perfectly. Thank you.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039157]
help
Chatterbox?
[zentara]: TGIF, I'm blowing my mind watching Casimir Effect & Black Holes - Sixty Symbols I love 60 Symbols. :-)
zentara ..oO the vacuum is teeming with photons and micro-blackholes
zentara .. and probably NSA bugs ;-)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (9)
As of 2017-06-23 16:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (552 votes). Check out past polls.