projects
/
mx01
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
grep through maillog for top from address from mailq
[mx01]
/
grep-maillog.sh
diff --git a/grep-maillog.sh
b/grep-maillog.sh
new file mode 100755
(executable)
index 0000000..
8ee8c89
--- /dev/null
+++ b/
grep-maillog.sh
@@ -0,0
+1,3
@@
+#!/bin/sh -xe
+top_from=`./mailq-count-from.sh | sort -n -r | head -1 | awk '{ print $2 }'`
+sudo grep $* $top_from /var/log/mail.log