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

#start a rccp 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
rccp -N -o | grep "FLST ]" > listall.log & 


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


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

