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
Hi I like truss ln -s /var/qmail/bin/sendmail /usr/lib/sendmail did the trick On Mon, Oct 21, 2002 at 07:39:19PM +0200, L. Jankok wrote: :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 : : : :_______________________________________________ :syslog-ng maillist - syslog-ng@lists.balabit.hu :https://lists.balabit.hu/mailman/listinfo/syslog-ng :Frequently asked questions at http://www.campin.net/syslog-ng/faq.html :
participants (1)
-
L. Jankok