James Edward Gray II wrote: > > I converted all the Ruby Quiz software from FTP to SFTP about six > months ago. It's really very close to the same thing. I couldn't have > spent more than two hours with the learning time and converting all > three of my worker scripts. Here's the general pattern: > > require "net/sftp" > > Net::SFTP.start("url", "username", "password") do |server| > begin > server.put_file("local_path", "server_path") > > # possibly... > server.setstat("server_path", :permissions => 0644) > > # ... > rescue > puts "Something went wrong: #{$!}" > end > end > > __END__ > That's very interesting, thanks. That's the first sftp code I've seen. (Yeah, TRW2 doesn't cover it. So shoot me.) You don't need to mess with public keys and such? Hal