Shell scripting input password from script

view story

http://stackoverflow.com – I'm trying to write a shell script to transfer files to a remote windows machine which is running a ultra simple sftp server . So i don't have the option of using public key authentication. From the Linux end its a stripped down version for non intel platform , So if i want to use "expect" i cant install expect/tcl/tk. And this is for testing purpose and i would like to input the password from Shell script. Is there a method available? #!/bin/sh HOST='10.x.x.x' USER='user' PASSWD='passwd' sftp $USER@$HOST (HowTos)