Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Output conitinous nload results to a file

I am looking for a way to store the output of nload to a file, i've tried the standard

$ nload > file.log 

but that turns into an empty file...

I would also like to keep the file small by overwriting older results

Anybody got an idea i am missing? Another piece of (open-source) software that can show me sorta the same but then static would be fine as well if that would be a better/easier solution...

Oh in case it matters i am running Ubuntu 12.04 server.

Thanks in advance!

like image 843
Tobias Hagenbeek Avatar asked Apr 16 '14 02:04

Tobias Hagenbeek


1 Answers

Try the following command - it will also record any errors to the log file

$ nload >> file.log 2>&1
like image 147
Dobromir Velev Avatar answered Oct 09 '22 06:10

Dobromir Velev