From: Louis J Scoras Date: 2005-09-30T05:00:18+09:00 Subject: Re: Net::SFTP: open_handle => null string ------=_Part_4479_24619978.1128024015704 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 9/29/05, Jamis Buck wrote: > > > Yah, that would be problematic. :) You have to send read/write to the > sftp instance, and pass the handle to it. Very un-Rubyish, I know: > > sftp.open_handle("foo.txt") do |handle| > data =3D sftp.read(handle) > end > > Please do take a look at the examples subdirectory. It will clear up > a lot of questions about how to use these methods. Likewise, the > Net::SFTP FAQ may be enlightening: http://net-ssh.rubyforge.org/sftp/ > faq.html. > > - Jamis > > Doh! You know, I did stare right at the example, closed it, and then still made the mistake. I need a bigger screen, hehe. Thanks for the help. The library's very nice, by the way. -- Lou ------=_Part_4479_24619978.1128024015704--