expect and ruby

R

Robert La Ferla

I need to communicate with a sftp server from a Ruby script. What's
the best way to do this? I am looking for something like "expect" I
found a way to spawn and expect using the "pty" standard lib but I
didn't see a "send" I found a rexpect on RubyForge but that looks
like it hasn't been maintained in months. What should I be looking at?
 
E

Ezra Zygmuntowicz

I need to communicate with a sftp server from a Ruby script.
What's the best way to do this? I am looking for something like
"expect" I found a way to spawn and expect using the "pty"
standard lib but I didn't see a "send" I found a rexpect on
RubyForge but that looks like it hasn't been maintained in months.
What should I be looking at?

You should check out net/ssh and net/sftp:

http://raa.ruby-lang.org/project/net-sftp/
http://raa.ruby-lang.org/project/net-ssh/


Cheers-
-- Ezra Zygmuntowicz
-- Lead Rails Evangelist
-- (e-mail address removed)
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,898
Latest member
BlairH7607

Latest Threads

Top