Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Is it possible to execute some command in qx argument

by choroba (Cardinal)
on May 05, 2017 at 07:23 UTC ( [id://1189551]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Is it possible to execute some command in qx argument
in thread Is it possible to execute some command in qx argument

Oh, I see, wasn't reading carefuly.
my $arg = '"; mkdir "otherdir';
($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^4: Is it possible to execute some command in qx argument
by vladimirfedorov (Novice) on May 06, 2017 at 01:04 UTC
    Ok, it worked perfectly in command line but when testing end to end I found out that all quotes and apostrophes were replaced with &aquot; and & apos;. The arguments are being passed in the vm through an xml, so I guess that's why they were converted. Is there a way to do the same without apostrophes or quotes?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1189551]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found