LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2011, 02:19 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Rep: Reputation: 48
how to show the bytes being downloaded


I am using ubuntu 9.04

I like wget because its output is like
Code:
--2011-03-15 11:43:35--  http://www.national.com/ds/LM/LM22680.pdf
Resolving www.national.com... 184.50.119.107
Connecting to www.national.com|184.50.119.107|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 610135 (596K) [application/pdf]
Saving to: `LM22680.pdf'

100%[===================================================================================>] 6,10,135     570K/s   in 1.0s    

2011-03-15 11:43:37 (570 KB/s) - `LM22680.pdf' saved [610135/610135]
which shows lot of info .
I want to add another item that shows hex value of data entering the output file while download is in progress.
This way , to me , it appears the computer is working hard to grab the file .
I know if the data rate is in KB/s then it will be hard to output all of them . So , let us say it will show byte at regular interval of 1KB.
Wouldn't that be cool !
 
Old 03-15-2011, 04:48 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
why would that be cool?? What are you possibly going to get out of seeing every 1024th byte of a PDF file?
 
Old 03-15-2011, 06:05 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
Just a continuous series of hexadecimal values making an animation in terminal indicating data transfer taking place.
 
Old 03-15-2011, 06:31 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
There is a program `pv' that will give you feedback for transfers such as tar, which can go through a pipe.
 
Old 03-18-2011, 09:52 AM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
I saw man page of pv which can shows elapsed time , eta timer , rate of transfer , amount of data transferred , % .

There was an example
Code:
  (tar cf - . \
               | pv -n -s `du -sb . | awk '{print $1}'` \
               | gzip -9 > out.tgz) 2>&1 \
              | dialog --gauge 'Progress' 7 70
with warning
Frequent use of this third form is not recommended as it may cause the programmer to overheat.
I want that output should be a series of successive 1024th byte .

Last edited by sumeet inani; 03-18-2011 at 09:58 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Some software downloaded with Software Manager (Mint 9-Gnome) does not show in Menu Neyzan Linux - Software 3 09-12-2010 04:30 PM
Downloaded files do not show in /home as usually borgibo Linux - Newbie 5 03-15-2009 01:46 PM
Is there any software for FC8 to show what is being downloaded? mrfixit1951 Linux - Software 6 07-23-2008 01:34 PM
Samba shares show 0 bytes free after moving partitions kridy Linux - Software 2 08-30-2006 01:23 PM
TX bytes vs. httpd bytes ovrload Linux - Networking 3 10-12-2005 05:19 PM


All times are GMT -5. The time now is 10:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration