[asterisk-dev] Google Summer of Code 2009

Steve Edwards asterisk.org at sedwards.com
Thu Apr 23 15:56:13 CDT 2009


On Thu, 23 Apr 2009, Tzafrir Cohen wrote:

> On Thu, Apr 23, 2009 at 01:25:22PM -0700, Steve Edwards wrote:
>> On Thu, 23 Apr 2009, Clod Patry wrote:
>>
>>> What do you mean with "start answer" and "stop hangup" ?
>>> you will start to print in the CLI on answer and stop on hangup?
>>
>> Yes.
>>
>> The "filter" command was like grep.
>>
>> If there was a "start" command, nothing was output until the matching text
>> was present.
>>
>> If there was a "stop" command, output was terminated when the matching
>> text was present.
>>
>> I don't want to presume how it should be done, but I found this approach
>> was useful to me.
>
> tail -n1 -f /var/log/asterisk/whatever | your filter here

It never occurred to me to use -n and -f together, but this doesn't achieve 
the "start GRE" and "stop GRE" features.

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-dev mailing list