#!/bin/sh
#CCCP script by hampa@chello.se
#delete all queues
#if you have alot of queues this command should be run more than
#once to clear the queue totally

while [ 1 ]
do
	cccp -q | cut -c10- | cut -d\| -f 1 | xargs -n1 -exec cccp -k 
	if [ $? -ne "0" ]
	then
		echo "done"
		exit;
	fi
	echo "run again"
done
