Yeah I do this,
- create 2 ssh
sessions to the same box,
- on the first session
do `script -f /tmp/astcli`
- `asterisk –r`
(and whatever other options you need
- 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