Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Feb 2011
Blocked while Redirecting the syslog messages to a pipe
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
cat /var/diagpipe | while read LINE
echo $LINE >> /var/Diag.log
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