The problem you stated: "what's a good way of encoding ... so that it will survive an ssh call?"
Where "D" is the shell's literal parser and "s" is an arbitrary shell command, you want a function "E" that exhibits the following behaviour:
s = D(E(s)) = D(D(E(s))) = D(D(D(E(s)))) etc
but there is none.
In reply to Re^5: safely passing args through ssh
by ikegami
in thread safely passing args through ssh
by perl5ever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |