rchcoffey
rchcoffey

Reputation: 79

How to show sftp progress

I have script that sftp files . i would like to display a progress bar showing the transfer of the files

sftp -o StrictHostKeyChecking=no  [email protected] << !
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye

Upvotes: 5

Views: 15167

Answers (1)

codeforester
codeforester

Reputation: 43089

Try this:

sftp -o StrictHostKeyChecking=no  [email protected] << !
 progress
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye

From man sftp:

 progress
   Toggle display of progress meter.

Upvotes: 7

Related Questions