File: listall

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 (17 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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