Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 ALL


  Ruby net-scp cannot scp multiple files with asterisk(*)

net-ssh/net-scp is a Ruby gem which can be used to scp files between different *nix machines. It's similar to how the *nix scp command. It can be used to scp a file or a directory. However, it seems it has some problem to scp multiple files using pattern *.For example, below script is supposed to download all files from remote directory to local directory:require 'net/scp'host = 'testmachine'login = 'testaccount'password = "testpassword"remote_path = '/tmp/remote_dir/*'Net::SCP.start(host, login, :password => password) do |scp| scp.download(remote_path, '.')endThe...

4,988 7       RUBY NET-SCP ASTERISK MULTIPLE FILES