William Murray wrote: > I am trying to make a cron job copy files using sftp. > Unfortunately the server only accepts password,keyboard-interactive > modes. So I would really like to redirect standard in. > However, if I make a script like this: > sftp hhh@yyy <input.txt > it still requests the pasword from the keyboard. Is there any way to > get round this? I really cannot change the settings on the server. You should look at expect. It's tailor made for this exact purpose. Joe