LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Showing progress bar while using SFTP (https://www.linuxquestions.org/questions/linux-networking-3/showing-progress-bar-while-using-sftp-657862/)

paragkalra 07-24-2008 12:40 AM

Showing progress bar while using SFTP
 
Hey friends,

Daily I use "sftp" utility to upload some or the other stuff to my FTP server. Sometimes the size of the data that I upload is too large and I have to wait & wait & wait...

Is there a way I can make "sftp" display some progress bar or % (percentage) completion bar which will let me know the data transfer status?

I am seeing "sftp" man page but couldn't get much info.

Caighil 07-24-2008 02:21 AM

This is a shot in the dark, and it may be way wrong, but i beleive the -v may show a bar. I believe it does when untaring a file, but I am not sure if it can be used in your case. I use a -zxvf when I untar. Again I may be completely wrong too.

KC

farslayer 07-24-2008 09:19 AM

you could try using the command hash or progress prior to transferring your file..

http://linux.about.com/od/commands/l/blcmdl1_ftp.htm

Quote:

3.7 Hash marks and tick

Wouldn't it be nice if you could watch the progress while you're downloading a file with ftp? You can use the hash command to print out hash marks as you download a file:

ftp> hash
Hash mark printing on (1024 bytes/hash mark).

As you can tell, ftp will print a hash mark for every 1024 bytes of data you download.

There is also a tick option.

ftp> tick
Tick counter printing on (10240 bytes/tick increment).

This will print something to this effect as you download a file:

Bytes transferred: 11680


progress
Toggle display of progress meter.




colucix 07-24-2008 09:25 AM

If it matches your requirements, you can try scp instead. It shows a progress bar by default.

paragkalra 07-24-2008 11:49 PM

"progress" did the trick...thanks to all...


All times are GMT -5. The time now is 08:19 PM.