[asterisk-dev] Google Summer of Code 2009

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Apr 23 15:44:13 CDT 2009


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

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-dev mailing list