Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

In bash I can run time $(curl -L ...|bash) to find out the total time this script takes. Is there a way to get similar total information about the up/download traffic it generated?

Note that nethogs does not do what I need - it shows the traffic rates from time to time. I'd like the cummulative total of the traffic in/out.

share|improve this question
    
What do you mean by from time to time? –  Symin Jan 23 '13 at 4:26
add comment

1 Answer

up vote 3 down vote accepted

Just keep the nethogs running.

You can change display modes by pressing M. The first default mode is kbps, after pressing M few times you can get total bytes.


Edit: added screenshots

KB/sec Total MB

share|improve this answer
    
I mean computers are discrete, so I couldn't say 'continuously' :) –  hedgehog Jan 23 '13 at 7:00
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.