On 03/04/2017 11:02 AM, Galen Seitz wrote: > On 03/04/17 00:41, Richard Owlett wrote: >> On 03/02/2017 01:48 PM, Keith Lofstrom wrote: >>> On Wed, Mar 01, 2017 at 04:33:57PM -0600, Richard Owlett wrote: >>>> Is there a tool which can be >>>> "turned on" at time t0 >>>> "turned off" at time t1 >>>> which will report the number of >>>> "uploaded" bytes >>>> "downloaded" bytes >>>> in that interval? >>> >>> [snip] >> >> For my needs I'll skip aiming at a spreadsheet and write some simple >> bash scripts to gather data and do some basic formatting. For anything >> more complex I'll use Tcl/Tk as I use it in another project. The more >> practice the better. >>[snip] > > If you want to use this as a learning exercise, go for it. If not, > then I feel you are making this more complicated than necessary. > > First capture your data as Robert suggested. Change the 10 to > whatever time interval is desired. > cp /proc/net/dev /tmp/foo; sleep 10; cat /proc/net/dev >> /tmp/foo > > Now open the file using libreoffice. Under Separator options, select > "Space" and "Merge delimiters". Click OK. Your task, as you have > described it, is now about 95% complete.
Learning is *A* motivation. However using LibreOffice to substitute for a few lines of bash scripting seems like driving an 18-wheeler to the corner grocery for a quart of milk ;/ YMMV Now all I have to do is learn bash and possibly awk and some grep nuances. Retirement *IS* for learning. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
