def METHOD_NAME(command,in_prefix,run_prefix,out_prefix,tokens,capture=None):
    if feedback['tinker']:
        print(" "+str(__name__)+': creating temporary files "%s.*"' % (run_prefix))
        print(" "+str(__name__)+': launching %s...' % command)
        c = 1
        for a in tokens:
            print(" "+str(__name__)+': input %d = %s' % (c,a))
            c = c + 1
        if hasattr(sys.stdout,"flush"):
            sys.stdout.flush()
    for a in glob.glob(run_prefix+".*"):
        os.unlink(a)
    for a in glob.glob(out_prefix+".*"):
        os.unlink(a)
    for src in glob.glob(in_prefix+".*"):
        dst = src.split('.')
        dst = run_prefix+'.'+dst[len(dst)-1]
        shutil.copyfile(src,dst)
    if capture==1:
        pipe = os.popen(bin_path+command+"> "+run_prefix+".out","w")
    elif capture==2:
        pipe = os.popen(bin_path+command+" | tee "+run_prefix+".out","w")
    else:
        pipe = os.popen(bin_path+command,"w")
    if not pipe:
        print("Error: can't run tinker!!!")
        raise RunError
    for a in tokens:
        pipe.write(a+"\n")
    pipe.close()