Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^6: safely passing args through ssh

by perl5ever (Pilgrim)
on Jul 26, 2011 at 14:56 UTC ( [id://916785]=note: print w/replies, xml ) Need Help??


in reply to Re^5: safely passing args through ssh
in thread safely passing args through ssh

Why are you ignoring the entire section of my original post starting with "To be specific about the problem ..."???

I'm not looking to encode an arbitrary shell command. Given an $array that will invoke a perl interpreter via open(..., "-|", @$array) I am looking for ways to safely encode a perl script that will be passed to the interpreter via the command line.

Replies are listed 'Best First'.
Re^7: safely passing args through ssh
by ikegami (Patriarch) on Jul 26, 2011 at 18:03 UTC

    Why are you ignoring the entire section of my original post starting with "To be specific about the problem ..."???

    First, that's not true. I addressed that.

    Second, I don't happen to be interested in helping you work around a bug when it's easy to fix the bug itself.

    I'm not looking to encode an arbitrary shell command.

    That's not true, you're trying to make it work with Perl and argcount.

    If it's limited to Perl, there are indeed ways.

    perl -MDecoder -edecode_and_run encoded

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-07-24 20:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.