15 Nov 2007, 10:18am

by Ariejan de Vroom
leave a comment

Bash it! - Number of messages in Postfix queue

Got bash? Here’s a nice snippet that will return the number of messages currently in the postfix queue.

postqueue -p | tail -n 1 | cut -d' ' -f5

Feel free to post any updates or improvements.

12 Jun 2007, 12:21pm

by Ariejan de Vroom
6 comments

BASH your SVN and Trac installation!

I’ve already discussed how to install Subversion and Trac on your Ubuntu server. In my case I have a server that manages different SVN and Trac installations for a group of developers.

Creating a new SVN repository and Trac installation every time is quite boring and “if you need to do it more than once, you should automate it”. So, that’s what I did.
more »

10 Jun 2007, 8:34pm

by Ariejan de Vroom
5 comments

Send mail with a BASH Shell Script

Like any good programmer, I try to automate the crap out of everything. If you have to do it more than once, I try to write a script for it.

This time I want to show you how you can easily send an e-mail from a BASH script. The idea is that you want the script to send out an email to notify a user that something has happened.
more »