app_name = "uppercase"; $req->jobs = array(); $f = new StdClass; $f->mode = "local_staged"; $f->source = "input"; $job = new StdClass; $job->input_files = array($f); for ($i=10; $i<20; $i++) { $job->rsc_fpops_est = $i*1e9; $job->command_line = "--t $i"; $req->jobs[] = $job; } list($batch_id, $errmsg) = boinc_submit_batch($req); if ($errmsg) { echo "Error: $errmsg\n"; } else { echo "Batch ID: $batch_id\n"; } } function test_query_batch($req, $id) { $req->batch_id = $id; $req->get_cpu_time = true; list($r, $errmsg) = boinc_query_batch($req); if ($errmsg) { echo "Error: $errmsg\n"; } else { print_r($r); } } $config = file("config.txt"); $project = trim($config[0]); $auth = trim($config[1]); $req = new StdClass; $req->project = $project; $req->authenticator = $auth; //test_submit_batch($req); test_query_batch($req, 267);