On Fri, Nov 16, 2001 at 04:35:28PM -0000, Simon Parkes wrote:
Is a bash script here it is.. don't laugh too much please... #!/bin/sh
cat /var/log/maillog | grep -G 'esmtp' > /home/httpd/html/secure/maillog.extern & cat home/httpd/html/secure/mailindex.head /home/httpd/html/secure/maillog.ext ern /home/httpd/html/secure/index.foot > /home/httpd/html/secure/sendmail.html
I know there's probably an easier way of doing it but as I said my scripting ain't upto much...
You could always add a:
perl -pi -e 's/\n/<br>/' maillog.extern
in the middle - which will replace all eols with <br>s
chris.