SFTP results
5 pts.
0
Q:
SFTP results
Regular FTP outputs results to a log file, where does ssh-sftp in batch write results? Thanks.
ASKED: Jun 5 2009  4:44 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
90 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
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.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0