diff options
Diffstat (limited to 'sourcecodes/execute_bn_gom.php')
| -rw-r--r-- | sourcecodes/execute_bn_gom.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sourcecodes/execute_bn_gom.php b/sourcecodes/execute_bn_gom.php index 93d46309..920c3747 100644 --- a/sourcecodes/execute_bn_gom.php +++ b/sourcecodes/execute_bn_gom.php @@ -1,6 +1,8 @@ <?php include("input_validate.php"); +require("terminal_commands.php"); + $keyval=valid_keyval($_GET["My_key"]); //////////////execute c codes for local score/////////////////// @@ -25,10 +27,7 @@ $thr=file_get_contents("$thrfile"); //$thr=valid_input($thr); $thr=trim($thr); - -//$cmd="./run.sh $keyval $maxp $maxk"; -//system($cmd); -shell_exec('./run.sh '.$keyval.' '.$maxp.' '.$maxk.' '.$thr); +runTerminalCommand([realpath(__DIR__).'/run.sh', $keyval, $maxp, $maxk, $thr]); /////////////////////////////////structure matrix////////////////////////////////////////////////////////// @@ -93,7 +92,7 @@ if ($fout !== false) { } -shell_exec('./run_scripts/run_octave '.$keyval); +runTerminalCommand([realpath(__DIR__.'/run_scripts/run_octave'), $keyval]); ?> <script> |
