about summary refs log tree commit diff
path: root/sourcecodes/executionprogress_default.php
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2026-08-24 14:26:00 -0500
committerFrederick Muriuki Muriithi2026-08-24 14:26:00 -0500
commita08f24c69d35f3e82291fa4051f787964ec7bc9c (patch)
treeb1b16bc2e6d7f0d5a869282db4942710354424e6 /sourcecodes/executionprogress_default.php
parentd1e617f31c2ed2900845b7ea806ab5ee647d4de0 (diff)
downloadBNW-a08f24c69d35f3e82291fa4051f787964ec7bc9c.tar.gz
Use new `runTerminalCommand()` wrapper to run commands.
Diffstat (limited to 'sourcecodes/executionprogress_default.php')
-rw-r--r--sourcecodes/executionprogress_default.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/sourcecodes/executionprogress_default.php b/sourcecodes/executionprogress_default.php
index e609bfa4..88d877ac 100644
--- a/sourcecodes/executionprogress_default.php
+++ b/sourcecodes/executionprogress_default.php
@@ -4,6 +4,7 @@
 include("header_new.inc");
 include("runtime_check.php");
 include("input_validate.php");
+require("terminal_commands.php");
 
 $keyval=valid_keyval($_GET["My_key"]);
 //$dir="./data/";
@@ -24,7 +25,7 @@ $k_number=trim($k_number);
 
 //////////////////Check execution time///////////////////////////////////////////////
 $runtime=exe_time($keyval,$parent_number,$k_number);
-shell_exec('./run_scripts/run_settings '.$keyval);
+runTerminalCommand([realpath(__DIR__.'/run_scripts/run_settings'), $keyval]);
 ?>
 
 <div id="execute_div">