summaryrefslogtreecommitdiff
path: root/bin/run.tcsh
blob: 95b79bb81f2c359378a250a53a9654ae34eaf8b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

while ( 1 == 1 )
	if ( -f log/run.log ) mv log/run.log log/run.log.1
	if ( -f log/run.log1 ) mv log/run.log log/run.log.2
	if ( -f log/run.log2 ) mv log/run.log log/run.log.3
	if ( -f log/run.log3 ) mv log/run.log log/run.log.4
	if ( -f log/run.log4 ) mv log/run.log log/run.log.5
	if ( -f log/run.log5 ) mv log/run.log log/run.log.6
	if ( -f log/run.log6 ) mv log/run.log log/run.log.7

	./db/db run >& log/run.log
	sleep 2
end