#!/bin/csh

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

#limit coredumpsize unlimited

set index = 0

foreach sfx (led n1 n6 s1 s6)
    @ portNum = 27050 + $index
    procServ -c "$APP/iocBoot/iocvoltage" -n "BCAL VOLTAGES $sfx" -i ^D^C $portNum  ./bcal-voltages-$sfx.cmd &;
    sleep 0.2;
    @ index++
end
