You guys think YOU'RE overdoing it... your solution works with a single line. My solution was some convoluted 100 line shell script!
Tim Nelson Systems/Network Support Rockbochs Inc. (218)727-4332 x105 ----- "Lenz Emilitri" wrote: > I have a feeling we're overdoing it :) l. > > 2009/2/12 Lukas Rypl < r...@marconi.ttc.cz > > > > asterisk -rx "soft hangup $(asterisk -rx 'core show channels' | grep > > SIP/7000 > > > Hi, > > I used this way of processing output from asterisk 1.2 and found out > that it is not 100% safe because there can appear unprintable characters > in the output. This will cause the following grep command to show > message similar to "Binary content: matched" instead of expected line. > > It is necessary to use "strings -a" to filter output. So your example > should be: > > asterisk -rx 'core show channels' | strings -a | grep SIP/7000 > > > > Hope it helps > > Lukas > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > > > -- > Loway - home of QueueMetrics - http://queuemetrics.com > > _______________________________________________ -- Bandwidth and Colocation > Provided by http://www.api-digital.com -- asterisk-users mailing list To > UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users