Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Unsuccessfully passing arguments to a bash command

by Happy-the-monk (Canon)
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1039157]
[erix]: I'm not going to read it so I could be mistaken but it reeks of useful idiocy
[shmem]: AngloZionist is not an antisemitic term.
[shmem]: erix: be assured that we all are horribly mistaken, always. What would we write tests for, if not for that fact?
[shmem]: and then, audiatur et altera pars.
[erix]: and what's the "Vineyard"? Don't tell me it's doing supernatural stuff too.
[shmem]: go figure. Might help to open views to other ways of perceiving reality. No, no supernatural stuff.
[shmem]: the "Vineyard" is a biblic term, also. But that's not the point.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2018-03-19 20:59 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.