Re: [ilugd] [HELP] How to count number of process

2009-07-27 Thread Pawan
Sudev Barar sba...@... writes: Problem: the number of of netcat process started run in excess of 84000 (a process a second) so the counter simply restarts. So I guess it is script modification to add/update counter to a file and then read it/reset it. This will add number of steps read

[ilugd] [HELP] How to count number of process

2009-07-24 Thread Sudev Barar
I have made a script that starts netcat repeatedly in listen mode. Once incoming data is started the script fires off another NC instance and previous NC process then dies when data string ends. I want to count how many netcat processes were launched during a particular testing period. One option

Re: [ilugd] [HELP] How to count number of process

2009-07-24 Thread Tanveer Singh
On Fri, Jul 24, 2009 at 1:55 PM, Sudev Barar sba...@gmail.com wrote: I have made a script that starts netcat repeatedly in listen mode. Once incoming data is started the script fires off another NC instance and previous NC process then dies when data string ends. I want to count how many

Re: [ilugd] [HELP] How to count number of process

2009-07-24 Thread Chirag Anand
On Fri, Jul 24, 2009 at 1:55 PM, Sudev Barar sba...@gmail.com wrote: I have made a script that starts netcat repeatedly in listen mode. Once incoming data is started the script fires off another NC instance and previous NC process then dies when data string ends. I want to count how many

Re: [ilugd] [HELP] How to count number of process

2009-07-24 Thread Tanveer Singh
On Fri, Jul 24, 2009 at 7:11 PM, Chirag Anand anand.chi...@gmail.comwrote: On Fri, Jul 24, 2009 at 1:55 PM, Sudev Barar sba...@gmail.com wrote: I have made a script that starts netcat repeatedly in listen mode. Once incoming data is started the script fires off another NC instance and

Re: [ilugd] [HELP] How to count number of process

2009-07-24 Thread Chirag Anand
On Fri, Jul 24, 2009 at 7:25 PM, Tanveer Singh w...@tanveer.in wrote: You missed his question. He does not want to know how many netcats are running, he wants to know that between time T and time T+Delta how many netcats were fired. Okay. In that case, I think your solution should do the

Re: [ilugd] [HELP] How to count number of process

2009-07-24 Thread Sudev Barar
2009/7/24 Chirag Anand anand.chi...@gmail.com: On Fri, Jul 24, 2009 at 7:25 PM, Tanveer Singh w...@tanveer.in wrote: You missed his question. He does not want to know how many netcats are running, he wants to know that between time T and time T+Delta how many netcats were fired. Problem: