|
Dear Brother
First of all I would like to thanks for your reply. I have to modify your code a bit. Here is the code
At server1
# cat>abc
lcd /girish
cd /amit
mput *
bye
# cat>xyz
Sftp –B 131072 –b abc –v server2 1>sftp1.log 2>sftp2.log
grep -i uploading sftp1.log> output
When I execute the xyz file it gives me the files which are transfer & log into output file. –B used for fast transfer of files. If I don’t give the –v option even then it work. But when I use –v option, kindly tell me where and in which file sftp do the loging.
One more thing is that output file only show the output when all the files are transfer. But suppose when I dissconnected the network during the transfe of files then it will not show any output. I need a solution in which if something happen during transfer of files then either sftp start sending all the files again or from where it was left.
|