RATE THIS ANSWER
0
Click to Vote:
0
0
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 Answered:
Jun 8 2009 4:17 PM GMT by Puneet 
90 pts.