you can output the batch results using -b option.
Here's an Example code
$ cat > batchfile
pwd
ls
$ sftp -b batchfile someuser@localhost > /var/tmp/foo
Password:
$ cat /var/tmp/foo
sftp> pwd
Remote working directory: /home/someuser
sftp> ls
some_file some_other_file some_dir
sftp>
$
Last Wiki Answer Submitted: June 8, 2009 4:17 pm by Puneet90 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.