5

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

sftp -o StrictHostKeyChecking=no  user@ftpsite.com << !
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye
rchcoffey
  • 79
  • 1
  • 2
  • 8

1 Answers1

6

Try this:

sftp -o StrictHostKeyChecking=no  user@ftpsite.com << !
 progress
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye

From man sftp:

 progress
   Toggle display of progress meter.
codeforester
  • 39,467
  • 16
  • 112
  • 140
  • i need a pop window to display , not the the progress to display in the bash window – rchcoffey Feb 15 '17 at 18:44
  • 4
    There is nothing like popup in `sftp` command-line tool. If you need popup, use Filezilla or some other GUI applications. – Jakuje Feb 15 '17 at 19:39