File: run-robot.sh

package info (click to toggle)
htdig 1%3A3.2.0b6-3.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 14,936 kB
  • ctags: 9,369
  • sloc: ansic: 49,626; cpp: 46,470; sh: 23,053; xml: 4,180; perl: 2,543; makefile: 868; php: 79; asm: 14
file content (23 lines) | stat: -rw-r--r-- 692 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

CfgFile=/www/search.sbs.de/test/conf/htfig.conf
BinDir=/www/search.sbs.de/test/bin
CgiBinDir=/www/search.sbs.de/test/cgi-bin
DataDir=/www/search.sbs.de/data/robot
Date=`date +%y%m%d`

date > $DataDir/$Date-runtime
$BinDir/htdig -v -t -s -c $CfgFile >> $DataDir/$Date-robot
$BinDir/htmerge -v -c $CfgFile >> $DataDir/$Date-robot
date >> $DataDir/$Date-runtime

$BinDir/whatsnew.pl -v > $DataDir/$Date-whatsnew
sort $BinDir/urls | uniq > $DataDir/$Date-urls

rm -f $DataDir/current-*
ln -s $DataDir/$Date-runtime $DataDir/current-runtime
ln -s $DataDir/$Date-robot $DataDir/current-robot
ln -s $DataDir/$Date-urls $DataDir/current-urls

$BinDir/status.pl -v > $DataDir/$Date-status