1 2 3 4 5 6 7
#!/bin/sh if ( custodian-queue --monitor ) ; then echo "All OK" else echo "Too large a queue" fi