in reply to Re: safely passing args through ssh
in thread safely passing args through ssh
I'm not sure this survives a double-ssh call:
This prints 3 for me.print backticks('ssh', 'localhost', '--', 'ssh', 'localhost', '--', +'argcount', text_to_shell_lit('a b c'));
As I mentioned in the original post, I was doubtful that backslash-escaping could solve the problem, but there still might be a way to do it.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: safely passing args through ssh
by ikegami (Patriarch) on Jul 25, 2011 at 18:19 UTC | |
by perl5ever (Pilgrim) on Jul 25, 2011 at 23:02 UTC | |
by ikegami (Patriarch) on Jul 25, 2011 at 23:29 UTC | |
by perl5ever (Pilgrim) on Jul 26, 2011 at 14:56 UTC | |
by ikegami (Patriarch) on Jul 26, 2011 at 18:03 UTC | |
Re^3: safely passing args through ssh
by ikegami (Patriarch) on Jul 25, 2011 at 18:20 UTC |
In Section
Seekers of Perl Wisdom