File: dcdump

package info (click to toggle)
rccp 0.5-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 164 kB
  • ctags: 40
  • sloc: ansic: 827; sh: 127; perl: 112; makefile: 66
file content (36 lines) | stat: -rwxr-xr-x 701 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
#CCCP script by hampa@chello.se
#this script will connect to all hubs and do a search query

#only hubs with atleast minusers in
minusers=30

nick="cccp_4_linox"
#save the quereys here
logfile="ms.log" 

#internal
s4='$4'
s2='$2'

hublist=`hublist | awk -F\| "{if($s4>$minusers) print $s2}"`

echo "saving output to $logfile"
cccp -o | grep "FLST ]" >> $logfile & 

for hub in $hublist
do
	echo connecting to $hub
	dctc -n $nick -o 99999999 -p 10001 -x -g $hub &
	echo sleeping 30 sek
	sleep 30
	echo dumping files
	cccp -u | xargs -n1 -exec cccp -O -l
	echo sleeping 500 seconds
	sleep 500 
	echo closing
	cccp -X
	sleep 10 
	#./cccp -H $hub -s "$searchquery" >> $logfile 
	#./cccp -X
done