#!/bin/rc # from arena files to running venti # need venti index file (could be optional) rfork en venti=127.0.0.1 if(! test -f index){ echo index not found >[1=2] exit } fn x { arenaname=$1 arenamedia=$arenaname.media if(! test -f $arenamedia){ echo file $arenaname not found >[1=2] exit } echo venti/wrarena -h $venti $arenamedia # venti/wrarena -h $venti $arenamedia if(! ~ $status '') exit } cat index | awk ' /^arena=/ { arena=substr($1, 7); printf("x %s\n", arena); } ' |rc >log >[2=1]