2013-05-30 16:44:58 +00:00
|
|
|
#! /usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
// Generate GAHP commands for submitting/querying/fetching a batch.
|
|
|
|
// Copy and paste these into a running BOINC GAHP
|
|
|
|
//
|
|
|
|
// Files in1 and in2 must exist already (these are input files)
|
|
|
|
//
|
|
|
|
// After fetching outputs, the following should exist:
|
|
|
|
// out1, out2: output files (upper-case versions of in1 and in2)
|
|
|
|
// stderr_out1, stderr_out2: stderr output of the 2 jobs
|
|
|
|
|
|
|
|
$t = time();
|
2013-09-18 06:14:57 +00:00
|
|
|
$expire = $t + 86400;
|
2013-05-30 16:44:58 +00:00
|
|
|
$batch_name = "batch_$t";
|
|
|
|
$job_name_1 = "job1_$t";
|
|
|
|
$job_name_2 = "job2_$t";
|
|
|
|
echo "
|
2013-08-28 04:24:01 +00:00
|
|
|
BOINC_SUBMIT 1 $batch_name uppercase 2 $job_name_1 0 1 in1 in $job_name_2 0 1 in2 in 1
|
2014-01-16 18:24:10 +00:00
|
|
|
BOINC_QUERY_BATCHES 2 0 1 $batch_name
|
2013-05-31 06:38:33 +00:00
|
|
|
BOINC_ABORT_JOBS 6 $job_name_1 $job_name_2
|
2013-05-30 16:44:58 +00:00
|
|
|
BOINC_FETCH_OUTPUT 3 $job_name_1 . stderr_out1 ALL 1 out out1
|
|
|
|
BOINC_FETCH_OUTPUT 4 $job_name_2 . stderr_out2 ALL 1 out out2
|
|
|
|
BOINC_RETIRE_BATCH 5 $batch_name
|
2013-09-18 06:14:57 +00:00
|
|
|
BOINC_SET_LEASE 6 $batch_name $expire
|
2013-05-30 16:44:58 +00:00
|
|
|
";
|
|
|
|
?>
|