File: searchspider

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 (26 lines) | stat: -rwxr-xr-x 504 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
#!/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=300

nick="cccp_spider"
searchquery="*lord of the rings*7"
#save the quereys here
logfile="ms.log" 

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

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

for hub in $hublist
do
	echo connecting to $hub
	dctc -n $nick -o 99999999 -p 10001 -x -g $hub &
	sleep 5 
	cccp -H $hub -s "$searchquery" >> $logfile 
	cccp -X
done