#!/bin/csh

if ( ! $?APP ) then
    source /gluex/etc/hdonline.cshrc
endif

foreach x (`seq 1 1 28`)
    @ portNum = 27000 + $x
    procServ -c "$APP/iocBoot/iocvoltage" -n "FCAL HV IOC # $x" -i ^D^C $portNum  ./fcal-voltage-$x.cmd &;
#    procServ -c "$APP/iocBoot/iocvoltage" -n "FCAL HV IOC # $x" -L ./fcal-voltage-$x.log -i ^D^C $portNum  ./fcal-voltage-$x.cmd &;
end
