> -----Original Message----- > From: Ian Darwin [mailto:[EMAIL PROTECTED] > Sent: March 30, 2007 1:04 PM > Cc: [email protected] > Subject: Re: [on-asterisk] Filtering output on the console > > Jim Van Meggelen wrote: > > Simple but handy: > > > > If you are looking to filter console output on a busy > system, you can > > use grep > > > > Let's say I want to see anything that involves an extension or peer > > called > > 6001 > > > > asterisk -rvvvv | grep 6001 > > > > This will not allow you to interact with the console, but > you'd just > > have to open up another session that was not filtered to do > your typing in. > > > Any ideas on how to improve this? > > We should get a fix for the long-standing gross bug that > causes "asterisk -r" to go insane when it reads end of file.
I think that long-standing bugs are generally considered unfixable ;-p > Then you could do > echo sip show peers | asterisk -r | grep -v OK What's the benefit of that over this? asterisk -rx "sip show peers" | grep -v OK Jim -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.446 / Virus Database: 268.18.22/739 - Release Date: 29/03/2007 1:36 PM
