assigning values to variables in the background

2013-01-15 Thread Nikos Vassiliadis
Hi, A bit of an OT question. I am writing a bourne shell script that collects data from a router. Since netstat vmstat can run for a numbers of iterations I thought I would use just that: stats() ( nstats=`netstat -I ng0 -q 1 60 | tail -1` rawdata=`vmstat -c 2 60 | tail -1`

Re: assigning values to variables in the background

2013-01-15 Thread Greg Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/15/13 12:42 PM, Nikos Vassiliadis wrote: Hi, A bit of an OT question. I am writing a bourne shell script that collects data from a router. Since netstat vmstat can run for a numbers of iterations I thought I would use just that:

Re: assigning values to variables in the background

2013-01-15 Thread Nikos Vassiliadis
On 1/15/2013 9:30 PM, Greg Larkin wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 1/15/13 12:42 PM, Nikos Vassiliadis wrote: Hi, A bit of an OT question. I am writing a bourne shell script that collects data from a router. Since netstat vmstat can run for a numbers of iterations I

Re: assigning values to variables in the background

2013-01-15 Thread Dan Nelson
In the last episode (Jan 16), Nikos Vassiliadis said: On 1/15/2013 9:30 PM, Greg Larkin wrote: On 1/15/13 12:42 PM, Nikos Vassiliadis wrote: A bit of an OT question. I am writing a bourne shell script that collects data from a router. Since netstat vmstat can run for a numbers of