[syslog-ng]email.sh script for syslog-ng using qmail
L. Jankok
lj@2u2.nu
Mon, 21 Oct 2002 19:39:19 +0200
Hi,
I have a e-mail.sh script which used /usr/bin/mail to
send "logging" mails from syslog-conf. I am looking
for some similar e-mail.sh script using qmail for
the e-mail.sh I am using right now doesn't work.
this is my current e-mail.sh script
#!/bin/sh
while read line; do
echo $line | /usr/bin/mail -s "log alert" admin@example.net
done
A "ps -ef | grep -i syslog | grep -v grep" gives me the following
output.
root 14191 1 0 19:36:45 ? 0:00 /usr/local/sbin/syslog-ng
root 14193 14192 0 19:36:45 pts/2 0:00 /bin/sh /usr/local/sbin/syslog-mail.sh
root 14192 14191 0 19:36:45 pts/2 0:00 /bin/sh -c /usr/local/sbin/syslog-mail.sh