[asterisk-users] Peak number of calls?

Steve Edwards asterisk.org at sedwards.com
Wed Jan 23 18:02:49 CST 2008


On Wed, 23 Jan 2008, Mojo with Horan & Company, LLC wrote:

> Steve Edwards wrote:
>> Or, as a quick & dirty...
>>          DATE=$(date +%F-%H-%M-%S)
>>          COUNT=$(sudo /usr/sbin/asterisk -r -x "sip show channels" | wc -l)
>>          echo $DATE $COUNT >>/tmp/channel-counts
>>
>> in a shell script executed every second in cron.
>>
> every *second* from cron?  how the heck would I you do that?  sub-minute
> accuracy from cron is something I don't know how to do.

Sheese -- that's what I get by trying to type without putting down the 
crack pipe :)

You're right -- the "*" in the first column of your crontab means minutes, 
not seconds.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list