check mail queue using ssh
I have all my hosts listed at "hosts" and use ssh keys to access them all, to check mailq in each of them you can either use fabric or simply ssh:
cat hosts | xargs -i ssh -t -t {} "sudo mailq | tail"
Note: -t -t is required to force pseudo-tty allocation.
Written by javier wilson
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ssh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#