Vitaly Semkin wrote:
> Hello.
> 
> I need to execute SCP (secure copy) command from Ruby script on Windows.
> The problem is that this command needs a password to be typed and 
> supports no switch or option to provide the password.
> 
> Is there any way to catch the command's output and give it the passwod?
> 

I mean, it goes like this:

 > scp2 ./file1 user@host:file1
user@host's password:_

And there's no way to provide the password as a command line argument. 
But I need to call this command out of a Ruby script, thus, I need to 
catch the command's output and give it the password.

Help!


-- 

  Vitaly Semkin
  Network Security Administrator
  Sibirtelecom
  +7 3832 270669