[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [listener] Garbage in /var/log/messages
I use the following to dump stdout and stderr to the null device.
/usr/local/bin/listener > /dev/null 2>&1
"> /dev/null" puts stdout to the null device
"2>&1" puts stderr to stdout which is directed to the null device.
This I know works because I use it.
For your command to work you need a space after the >
so your command line should look like
/usr/local/bin/listener 1> /dev/null 2> /dev/null
I use tail -f /var/log/messages to watch the listener work...
Hope this helps...
Ted
----- Original Message -----
From: "Yvan" <nospamtome@ml1.net>
To: <listener@vanheusden.com>
Sent: Friday, April 20, 2007 11:48 AM
Subject: [listener] Garbage in /var/log/messages
I start listener with following line in /etc/rc.local:
/usr/local/bin/listener 1>/dev/null 2>/dev/null
but I get a lot of lines like this in my /var/log/messages:
Apr 20 20:34:55 localhost listener: listener started
Apr 20 20:35:17 localhost listener: Started recording to \
/home/video/listener/04-20_20-35-17.wav
Apr 20 20:35:27 localhost listener: Stopped recording (9 seconds)
Apr 20 20:41:08 localhost listener: Started recording to \
/home/video/listener/04-20_20-41-08.wav
Apr 20 20:41:18 localhost listener: Stopped recording (9 seconds)
It is hard to find anything in log file as a lot of small files gets
recorded. How to stop listener writing this messages?
--
___ ____
/__/ / \ ** Registrovani korisnik Linuksa #291606 **
/ / \/ /\ \ ** Registered Linux user #291606 **
/__/\____/--\__\ ** http://counter.li.org/ **
------------------------------------------------------------------------------------
This message was sent through the Listener mailinglist
(www.vanheusden.com/listener)
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.446 / Virus Database: 269.5.5/769 - Release Date: 4/19/2007
5:56 PM