<p>I have a feeling we're overdoing it :)</p><p>l.<br></p><br><div class="gmail_quote">2009/2/12 Lukas Rypl <span dir="ltr"><<a href="mailto:rypl@marconi.ttc.cz">rypl@marconi.ttc.cz</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="Ih2E3d"><br>
> asterisk -rx "soft hangup $(asterisk -rx 'core show channels' | grep SIP/7000<br>
<br>
<br>
</div> Hi,<br>
<br>
I used this way of processing output from asterisk 1.2 and found out<br>
that it is not 100% safe because there can appear unprintable characters<br>
in the output. This will cause the following grep command to show<br>
message similar to "Binary content: matched" instead of expected line.<br>
<br>
It is necessary to use "strings -a" to filter output. So your example<br>
should be:<br>
<br>
asterisk -rx 'core show channels' | strings -a | grep SIP/7000<br>
<br>
<br>
<br>
Hope it helps<br>
<font color="#888888"><br>
Lukas<br>
</font><div><div class="Wj3C7c"><br>
<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Loway - home of QueueMetrics - <a href="http://queuemetrics.com">http://queuemetrics.com</a><br><br>