Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Simpler and safer' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Simpler and safer
Authored by: SOX on Sep 13, '07 08:59:43AM
A much simpler and much safer way: use "system"

System is safer because it enforces that there cannot be any command injection loopholes in the args and also it does not need to escape the meta chearaters.

perl -we 'system( "scp", "servrer:file", @ARGV)'

[ Reply to This | # ]