I created directories for each of the observations that had been collected.
In each directory, I created a simple text file, "spec.dat" which included the
slot of the border star as the first character in the file.

I then used this script (from the directory containing the obsid directories)

--------------------------
#!/bin/bash

# the shell should have the variables from
# /proj/sot/ska/dev/run_asp/set_vars.csh
# and /proj/sot/ska/bin/ska_envs.tcsh

for dir in `ls -d *`
do cd $dir
# get border star
star=`cat spec.dat | cut -c1`
pwd

# run the pipeline once on all stars (except slot 0 due to a pipeline bug)
echo "run_asp_pipe.pl -archive $dir -qual ${dir}_qual_0.ps -skip_slot 0"
run_asp_pipe.pl -archive $dir -qual ${dir}_qual_0.ps -skip_slot 0

# run the pipeline again, this time omitting the border star
echo "run_asp_pipe.pl -archive $dir -qual ${dir}_qual_1.ps -skip_slot 0,$star"
run_asp_pipe.pl -archive $dir -qual ${dir}_qual_1.ps -skip_slot 0,$star

echo "vv_asp $dir -cp"
vv_asp $dir -cp
cd ..
done
---------------------------

I ran into the problem that a few of the obsids did not have science instruments, 
and thus the pipeline balked at them.

I used this sed script file

---------------------------
/^instrum/c\
instrume,s,h,"HRC",,,"Instrument"
/^grating/c\
grating,s,h,"NONE",,,"Grating"
/^detnam/c\
detnam,s,h,"HRC-S",,,"Detector"
/^si_mod/c\
si_mode,s,h,"",,,"Science Instrument mode"
/^detector/c\
detector,s,h,"HRC-S",,,"Focus detector"
----------------------------

in combination with this script

---------------------------
for i in 60216 60223 60230 60245 60259 60270 60364;
do 
sed -f obs_sed "datadir/$i/obspar/axaff$i_000N001_obs0a.par" > "datadir/$i/obspar/temp.par"
cp "datadir/$i/obspar/temp.par" "datadir/$i/obspar/axaff$i_000N001_obs0a.par"
done
---------------------------

to fix those obsids.  I then re-ran the pipeline on those observations.
When complete, I made a new set of empty obsid directories and  I used this script to copy the 
centroids from the first pass and the  aspect solution from the second pass into new 
directories.

---------------------------
#!/bin/bash

for dir in `ls -d *`
do echo "cp ../datadir/$dir/ASP_L1_STD/out1/obs$dir*fits $dir"
cp ../datadir/$dir/ASP_L1_STD/out1/obs$dir*fits $dir
echo "cp ../datadir/$dir/ASP_L1_STD/out2/obs$dir*asol*fits $dir"
cp ../datadir/$dir/ASP_L1_STD/out2/obs$dir*asol*fits $dir
echo "cp ../datadir/$dir/spec.dat $dir"
cp ../datadir/$dir/spec.dat $dir

done

---------------------------

I then used variations of vv_asp.pro to generate plots.