Morgan Gilroy
2006-Feb-10 02:00 UTC
[Asterisk-Users] Any way to grep through fast moving consolemessages?
Yeah I do this, 1. create 2 ssh sessions to the same box, 2. on the first session do `script -f /tmp/astcli` 3. `asterisk -r` (and whatever other options you need 4. on the second session `tail -f /tmp/astcli | grep -i 'bob'` (on the grep you may have to ignore control chars if you have colour at cli, I think that's the -a option) then you can modify the grep to look for any messages you want. You can also stop the script and read the '/tmp/astcli' as you like. Hope that helps... -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Eric Bishop Sent: 10 February 2006 02:23 To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [Asterisk-Users] Any way to grep through fast moving consolemessages? Or perhaps slow them down or pipe to a file? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060210/c5e2576f/attachment.htm