How to show sftp progress
Asked Answered
G

1

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  [email protected] << !
 cd offload
 put /media/*/*.tgz |zenity --progress --auto-close
 bye
Gerontocracy answered 15/2, 2017 at 18:24 Comment(0)
L
7

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.
Lubeck answered 15/2, 2017 at 18:27 Comment(2)
i need a pop window to display , not the the progress to display in the bash windowGerontocracy
There is nothing like popup in sftp command-line tool. If you need popup, use Filezilla or some other GUI applications.Hazelwood

© 2022 - 2024 — McMap. All rights reserved.