Re: Please advise on programming tactics/strategy

2007-12-26 Thread Matthew Woehlke
cga2000 wrote: On Tue, Dec 18, 2007 at 09:57:44PM EST, Matthew Woehlke wrote: You might want to look at bash's command redirection instead. ? Sorry, the "correct" term (at least, what the manpage uses :-) ) is "process substitution". Conceptually, it's a bit like writing pipes backwards. F

Re: Please advise on programming tactics/strategy

2007-12-18 Thread cga2000
On Tue, Dec 18, 2007 at 09:57:44PM EST, Matthew Woehlke wrote: > cga2000 wrote: > >I was wondering if there is any way I can convince netstat to return > >its output to bash variables for processing. > > > >Pretty simple logic: > > > >Do forever: > > > > Call netstat to obtain RX & TX byte counts

Re: Please advise on programming tactics/strategy

2007-12-18 Thread Matthew Woehlke
cga2000 wrote: I was wondering if there is any way I can convince netstat to return its output to bash variables for processing. Pretty simple logic: Do forever: Call netstat to obtain RX & TX byte counts Print delta {current .. minus previous .. byte counts} Save current byte counts

Please advise on programming tactics/strategy

2007-12-12 Thread cga2000
I was wondering if there is any way I can convince netstat to return its output to bash variables for processing. Pretty simple logic: Do forever: Call netstat to obtain RX & TX byte counts Print delta {current .. minus previous .. byte counts} Save current byte counts Wait for a secon