feeder_out"); } function stop_feeder() { $f = fopen("../sched/feeder_trigger", "w"); fputs($f, "\n"); fclose($f); } function compare_file($out, $correct) { global $BOINC_UPLOAD_DIR; PassThru("diff $BOINC_UPLOAD_DIR/$out $correct", $retval); if ($retval) { echo "File mismatch: $out $correct\n"; } else { echo "Files match: $out $correct\n"; } } function check_results_done() { db_init(); $result = mysql_query("select * from result where state<>4"); while ($x = mysql_fetch_object($result)) { echo "result $x->id is not done\n"; } } ?>