docs: def searchTriples(expnums,ccd):
      """Given a list of exposure numbers, find all the KBOs in that set of exposures"""
      import MOPfits,os 
      import MOPdbaccess
      
      if len(expnums)!=3:
          return(-1)
  
  
      ### Some program Constants
  
      proc_file = open("proc-these-files","w")
      proc_file.write("# Files to be planted and searched\n")
      proc_file.write("#            image fwhm plant\n")
      
      import string
      import os.path
      filenames=[]
      import pyfits
      for expnum in expnums:
      	try: 
              mysql=MOPdbaccess.connect('bucket','cfhls','MYSQL')
              bucket=mysql.cursor()
  	except:
              raise TaskError, "mysql failed"
          bucket.execute("SELECT obs_iq_refccd FROM exposure WHERE expnum=%s" , (expnum, ) )
          row=bucket.fetchone()
  	mysql.close()
          fwhm=row[0]
          if not fwhm > 0:
              fwhm=1.0
  
          if int(ccd)<18:
              cutout="[-*,-*]"
          else:
              cutout=None
          filename=MOPfits.adGet(str(expnum)+"p",extno=int(ccd),cutout=cutout)
  
          if not os.access(filename,os.R_OK):
              raise TaskError, 'adGet Failed'
  	    
          filename=os.path.splitext(filename)
          filenames.append(filename[0])
          proc_file.write("%s %f %s \n" % ( filename[0], fwhm/0.183, "no"))
  
      proc_file.flush()
      proc_file.close()
      
      command="find.pl -p '' -d ./ "
  
      try:
          os.system(command)
      except:
          raise TaskErorr, "execute find"
      
  
      file_extens=[
          "cands.comb",
          "measure3.cands.astrom",
          "measure3.WARNING",
          "measure3.astrom.scatter"]
      
      if not os.access("find.OK",os.R_OK):
          raise TaskError, "find failed"
      
          
      astrom=filenames[0]+".measure3.cands.astrom"
      
      if os.access(astrom,os.R_OK):
          return(1)
      else:
          return(0)