From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-13T10:12:43+09:00 Subject: Re: Controlling an interactive program from Ruby On Sun, 13 Apr 2003 10:59:27 +0900, Daniel Carrera wrote: > 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: Passwords are unsafe.. take a look at ssh-keys. > It seems like I should be able to handle that with Ruby. cat filelist | xargs scp ... mmm.. maybe -- Simon Strandgaard