Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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)


Comment on Re: Unsuccessfully passing arguments to a bash command
Download Code
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (15)
As of 2015-07-29 13:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls