i am using HP-UX OS. i am able to do this from the command line. i am having issues only when i try to run from shell script. Please help me on this. Thanks
Seems that sftp wants a terminal for stdout. Does your sftp client have -b (batch) option? Maybe that will work and allow you capture stdout?
---------- Post updated at 10:55 AM ---------- Previous update was at 10:50 AM ----------
Most sftp programs don't have a --password option and expect you to use ssh keys and go passwordless for a 'batch' operation (just saying). In which case you might even be able to use scp instead of sftp.