Selection of GFS/GFS-HD functionality works closes #6
rodzic
13d83a1450
commit
bc0f4810b2
|
@ -83,10 +83,11 @@ function runPred($pred_model) {
|
|||
makeINI($pred_model);
|
||||
|
||||
// if we're using --hd, then append it to the exec string
|
||||
if ( $pred_model['software'] == "gfs_hd" ) $use_hd ="--hd ";
|
||||
|
||||
// use `at` to automatically background the task
|
||||
$ph = popen("at now", "w");
|
||||
fwrite($ph, "cd /var/www/hab/predict/ && ./predict.py -v --latdelta=3 --londelta=3 --lat=52 --lon=0 " . $pred_model['uuid']);
|
||||
fwrite($ph, "cd /var/www/hab/predict/ && ./predict.py -v --latdelta=3 --londelta=3 --lat=52 --lon=0 " . $use_hd . $pred_model['uuid']);
|
||||
fclose($ph);
|
||||
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue