From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-13T11:32:56+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. > Any ideas? > cat mybigfilelist | xargs -t -J {} -L2 scp {} [snip] > cat mybigfilelist source login@desthost:/destination/. index.rbx admin@microsoft.com:/web/. COMMAND.COM admin@microsoft.com:/winxp/. AUTOEXEC.BAT admin@microsoft.com:/winxp/. ruby.h admin@microsoft.com:/winxp/windows.h > -- Simon Strandgaard