File: deletequeue

package info (click to toggle)
rccp 0.9-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 244 kB
  • ctags: 44
  • sloc: ansic: 830; sh: 256; perl: 134; makefile: 71
file content (16 lines) | stat: -rwxr-xr-x 313 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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