projects
/
mx01
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
0f35cf8
)
grep through maillog for top from address from mailq
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 19 Sep 2016 09:11:20 +0000
(11:11 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Mon, 19 Sep 2016 09:11:20 +0000
(11:11 +0200)
grep-maillog.sh
[new file with mode: 0755]
patch
|
blob
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