#!/bin/csh -f
# export bb

#cd /nfs/ex3/bb/progress
#setenv ZINC_CONFIG_OVERRIDE ~/.zinc15/export-override.cfg
#source /nfs/soft/www/apps/zinc15/envs/production/env.csh

@ I = $1
@ delta = 1 
@ max = 220000
@ tranche = 1000000

while ($I < $max )
	@ start = 1 + ($I * $tranche )
	@ I = $I + $delta 
	@ end = $I * $tranche 
	echo start $start end $end
	python  /export/exe/work/jji/bb/bin/exportbb.py  $start $end > $I.txe
	echo $I
end
