The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 02-21-2008
girish.batra girish.batra is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 74
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.