|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
Different Syslogging - External Application
Hello all, I have a new idea on a something I want to accomplish with syslog and some messages going to my syslogd server. Is there a way to, instead of logging to a local file, call a local script from syslog.conf. IE:
local7.* /usr/bin/myscript.pl Therfore whenever I get a new msg coming on the local7 priority it would pass that msg to the perl script and from there I would be able to have my way with the text . Let me know if I can get this done and/or if I have to change syslogd servers. Thank you.Dan |
|
#2
|
|||
|
|||
|
You can use | to pipe to your script. BTW your exact question is RTFM'able.
|
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > Different Syslogging - External Application |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|