Ronald Wiplinger
2005-Aug-11 21:04 UTC
[Asterisk-Users] list in asterisk cli is getting too long
How can I use something like |more in CLI ? The lists are getting too long, like sip show users bye Ronald Wiplinger
Hilton Williams
2005-Aug-11 23:25 UTC
[Asterisk-Users] list in asterisk cli is getting too long
> ----- Original Message ----- > From: Ronald Wiplinger > To: Asterisk Users Mailing List - Non-Commercial Discussion > Sent: Friday, August 12, 2005 6:04 AM > Subject: [Asterisk-Users] list in asterisk cli is getting too long > > How can I use something like |more in CLI ? > > The lists are getting too long, like sip show usersHi If all you need is to browse the list of users, and you don't need to be in the CLI all the time, you can do something like: asterisk -rx "sip show users" | more from the Unix command line. Regards Hilton Datatex Dynamics CC Web site http://www.datatex.co.za/ Email to hilton@datatex.co.za Tel +27215924033 Fax +27215924077 The use of the Datatex e-mail facility is not permitted for the distribution of chain letters or offensive email of any nature whatsoever. Datatex hereby distances itself from and accepts no liability in respect of the unauthorised use of its e-mail facility or the sending of e-mail communications for other than strictly business purposes. Datatex furthermore disclaims liability for any unauthorised instruction for which permission was not granted. Any recipient of an unacceptable communication, a chain letter or offensive material of any nature is requested to report it to abuse@datatex.co.za.
Matthew Boehm
2005-Aug-12 06:27 UTC
[Asterisk-Users] list in asterisk cli is getting too long
Hilton Williams wrote:>> ----- Original Message ----- From: Ronald Wiplinger To: Asterisk Users >> Mailing List - Non-Commercial Discussion Sent: Friday, August 12, 2005 >> 6:04 AM >> Subject: [Asterisk-Users] list in asterisk cli is getting too long >> >> How can I use something like |more in CLI ? >> >> The lists are getting too long, like sip show usersYou can also use "sip show peers like <pattern>" to truncate the list. Ex: "sip show peers like 300" will only show peers whos username starts with or contains 300. -Matthew