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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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?

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to