cga2000 wrote:
> I was wondering if there is any way I can convince netstat to return
> its output to bash variables for additional processing.
Do you mean like this?
rxcnt=$(netstat -ni | awk '/^eth0/{print$4}')
> Pretty simple logic:
>
> Do forever:
>
> Call netstat to obtain RX & TX b
I was wondering if there is any way I can convince netstat to return
its output to bash variables for additional processing.
Pretty simple logic:
Do forever:
Call netstat to obtain RX & TX byte counts for eth0
Print delta {current .. minus previous .. byte counts}
Save current byte counts
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I would like all long-running commands to be auto-timed.
i.e., all commands I type at the prompt should be run as if with "time"
built-in, but if the real or user time is smaller than some value
(specified by the user in an environment variable), the t