Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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?
marto has a similar idea on the 'to do' list
[Discipulus]: 65-35 joint venture marto? ;=)
[choroba]: Fibonacci at 34!
[marto]: Discipulus, what did you have in mind?
[marto]: sort of related, have you seen sonic pi
[Discipulus]: choroba less than perl -le ' $==1,(1 x $_)=~/(^)(1|11\1 )*(?{$=++})^/, print $= for 0..10'?? congrats

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2017-10-17 10:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My fridge is mostly full of:

















    Results (225 votes). Check out past polls.

    Notices?