read system log?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu 14 March 2002 22:39, you (John Summerfield) wrote:
> [..]
> If you want to process all (or some) messages, one easy way is to
> mkfifo /var/log/programslog
>
> Configure syslogd to write to the FIFO - see the contents of
> /etc/syslog.conf
> Restart syslogd;
>   service syslog restart
>
> then open and read the FIFO with your program.
>
> You might add a script to /etc/init.d and chkconfig it so as to make
> your program start on boot like so many others do. The startup script
> might evem make the FIFO - if so then it must run before syslog's does;
> otherwise syslog with create a file.

Remember that FIFOs block until opened on both ends. Would it not cause 
problems in this case?


-- 

Tego nie znajdziesz w żadnym sklepie!
[ http://oferty.onet.pl ]





[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux