Jeff wrote: > newfunction(:mirror) do |args| > user = args[0] > host = args[1] > src = args[2] > dest = args[3] > cmd = "/usr/bin/rsync -vaz --delete --delete-during --rsh=\"ssh - > i /var/puppet/.ssh/" + > user +" -l " + user +"\" " + src + " " + host + ":" + dest > exec(cmd)
You might want to sanitize those parameters before blindly passing them to a shell. -scott -- [email protected] http://github.com/ohlol --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
