Created
November 19, 2014 18:45
-
-
Save n3t0cfg/139f5d9d6c808421ee43 to your computer and use it in GitHub Desktop.
Return only the number of mails on postfix queue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Return only the number of mails on postfix queue | |
mailq | grep Requests. | gawk '{print $5}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment