From: Daniel Carrera Date: 2003-04-13T09:59:27+09:00 Subject: Controlling an interactive program from Ruby Hi, I want to control an interactive program from Ruby, in the Expect style. I'd normally use Expect, but I can't get it installed. I was hoping I could use Ruby. I want to copy a large number of files from a remote location using scp. I already have a script that generates the entire list of files to copy, and figures out where each one goes. The problem is that these are spread over 300 directories, and I don't want to type my password 300 times. This is what I wantn to automate: $ scp dcarrera@zeno:/data/tmp/filename some/directory/ $ dcarrera@zeno's password: It seems like I should be able to handle that with Ruby. Any ideas? Thanks. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137