I fixed a couple bugs in photred_commonsources_daofindphot.pro. -photred_mkopt inputs weren't correct -daophot.opt was deleted at the end which caused problems when multiple   instances of photred_commonsources_daofindphot.pro are run and would   cause problems, i.e. process A checks that daophot.sh is there but   process B deletes the file at the end of it's process and so daophot.opt   doesn't exist when process A needs it when it runs daophot.
I fixed a couple bugs in photred_commonsources_daofindphot.pro.
-photred_mkopt inputs weren't correct
-daophot.opt was deleted at the end which caused problems when multiple
  instances of photred_commonsources_daofindphot.pro are run and would
  cause problems, i.e. process A checks that daophot.sh is there but
  process B deletes the file at the end of it's process and so daophot.opt
  doesn't exist when process A needs it when it runs daophot.

dnidever/PHOTRED,dnidever/PHOTRED