#!/bin/sh
#CCCP script by hampa@chello.se
#lista all files from all users

#start a cccp session that outputs FLST to a listall.log
# this file will be run in the  background
# -N is to prevent ERR from going to stderr
cccp -N -o | grep "FLST ]" > listall.log & 


#now send the LIST command to all users
cccp -N -u | xargs -n1 -exec cccp -O -l


#keep track of the listall.log file and
#when you ve had enough files kill the pid of the first cccp

