[asterisk-users] say I wish to run tail command on messages file to pick up if any "channels unavailable" messages appear.
Danny Nicholas
danny at debsinc.com
Fri Dec 12 08:19:11 CST 2008
Try this first:
Cat /var/log/asterisk/messages|grep "channels unavailable"
Once you get grep output from this, changing the grep on the tail command
should produce the desired results.
Since the tail -f is a dynamic situation, it is much easier to make the test
on the fixed cat command.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Philipp
Kempgen
Sent: Friday, December 12, 2008 7:30 AM
To: Asterisk Users
Subject: Re: [asterisk-users] say I wish to run tail command on messages
file to pick up if any "channels unavailable" messages appear.
Shaun Wingrin schrieb:
> Can I use grep ? Tried but not working.
tail -f /var/log/asterisk/messages | grep 'channels unavailable'
Philipp Kempgen
--
http://www.das-asterisk-buch.de - http://www.the-asterisk-book.com
Amooma GmbH - Bachstr. 126 - 56566 Neuwied -> http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
--
_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list