[Asterisk-Users] asterisk -rx 'sip show peers'

Tzafrir Cohen tzafrir at cohens.org.il
Wed May 10 21:32:35 MST 2006


On Thu, May 11, 2006 at 08:28:45AM +0800, Ronald Wiplinger wrote:
> I upgraded recently to Asterisk SVN-branch-1.2-r25165M
> 
> the commandline  
>   asterisk -rx 'sip show peers'
> 
> returns with the first line:
> on
> 
> Is that a bug, or how can I omit it?
> 
> I used:
> asterisk -rx 'sip show peers'|grep OK|sort | tee /dev/tty |wc -l; echo " 
> registered at ELMIT"
> 
> which results (because of on) to:
> 
> Binary file (standard input) matches

use 'grep -a' (grep --text)

-- Tzafrir



More information about the asterisk-users mailing list