diff options
Diffstat (limited to 'qmail-qstat.sh')
| -rw-r--r-- | qmail-qstat.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qmail-qstat.sh b/qmail-qstat.sh new file mode 100644 index 0000000..26a6d3f --- /dev/null +++ b/qmail-qstat.sh | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | cd QMAIL | ||
| 2 | messdirs=`echo queue/mess/* | wc -w` | ||
| 3 | messfiles=`find queue/mess/* -print | wc -w` | ||
| 4 | tododirs=`echo queue/todo | wc -w` | ||
| 5 | todofiles=`find queue/todo -print | wc -w` | ||
| 6 | echo messages in queue: `expr $messfiles - $messdirs` | ||
| 7 | echo messages in queue but not yet preprocessed: `expr $todofiles - $tododirs` | ||
