![]() |
|
No such thing as a small change | |
PerlMonks |
Re^6: Getting information about a remote file via SSH: how to escape the filenameby salva (Canon) |
on Jun 28, 2013 at 08:13 UTC ( #1041175=note: print w/replies, xml ) | Need Help?? |
Suggestions on how to stay safe are very welcome Avoid the shell as much as you can (i.e. using system $cmd, @args instead of system "$cms @args"). Otherwise, quote your data properly. For instance, for POSIX shells I use the following sub to quote commands and arguments:
In Section
Seekers of Perl Wisdom
|
|