Friendly greetings ! i rewrote http://www.nobugs.org/blog/archives/2008/05/11/squawk-simple-queues-using-awk/ The repository can be found here : https://github.com/ebuzzing/bash-mq
Feature : - login/password handling - program option using getopts - use socat instead of nc - easier to maintain (hopefully!) - can specify message handler from command like - provided sample handler - can specify handler option to the consumer TODO (eventually) : - use "expect" instead of echo for error handling - the awk script could be improved License is WTFPL so ... 0. You just DO WHAT THE FUCK YOU WANT TO. I probably should add a friendly credit to Andrew Birkett If you're here and want me to add some better credit than what i wrote, just ask :) *hugs* -- Laurent "ker2x" Laborde Sysadmin & DBA at http://www.over-blog.com/