Results 1 to 1 of 1
Hi All,
I am newbie to linux and i am trying to re-direct the syslog messages to a pipe.
I have modified the syslog.conf file accordingly and have written an ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-08-2011 #1Just Joined!
- Join Date
- Feb 2011
- Posts
- 2
Blocked while Redirecting the syslog messages to a pipe
Hi All,
I am newbie to linux and i am trying to re-direct the syslog messages to a pipe.
I have modified the syslog.conf file accordingly and have written an rc script to read from the pipe and put them to a file.
I was able to get the log messages to the file but my system is getting blocked in the rc script due to the "read" and i was not asked for the username and password for login.
This is my rc script is as follows
#!/bin/bash
cat /var/diagpipe | while read LINE
do
echo $LINE >> /var/Diag.log
done
syslog.conf
*.info |/var/diagpipe
My rc script is getting ececuted after the rc script for syslod is executed.
can someone please help me, so that with my rc script i will be reading the data from the pipe continuously and i should not block.
Thanks in Advance
Anil.


Reply With Quote
