From c4f926438dcb8abe805e910399940f79ff643c4b Mon Sep 17 00:00:00 2001 From: ziejd2 Date: Thu, 14 Sep 2017 15:39:41 -0500 Subject: Add files via upload --- sourcecodes/execute_bn_gom.php | 98 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 sourcecodes/execute_bn_gom.php (limited to 'sourcecodes/execute_bn_gom.php') diff --git a/sourcecodes/execute_bn_gom.php b/sourcecodes/execute_bn_gom.php new file mode 100644 index 00000000..ead7bd3f --- /dev/null +++ b/sourcecodes/execute_bn_gom.php @@ -0,0 +1,98 @@ + + %s;\n",$ii,$j); + //fprintf($fouttemp,"%s -> %s;\n",$row_name,$col_name); + + } + } + + +} +fwrite($fout,"$endstring"); +fclose($fout); + +$file1="./data/".$keyval."run_initialstructure.sh"; +$initiallines=file_get_contents("./data/temp_shell_file_initial_structure"); +$all_lines="$initiallines"."$keyval\nfi\nexit"; +$fp = fopen($file1,"w"); +fwrite($fp, "$all_lines\n"); +fclose($fp); +//prepare and execute shell script for matlab with a write lock +//$cmd="./runmat.sh $keyval"; +//system($cmd); + +shell_exec('./runmat.sh '.$keyval); + +?> + + -- cgit 1.4.1