I am trying to execute java file using shell_exec()
command, but the output formatting is not as per the expectation. Here are the details
code:
echo shell_exec("java WekaExample");
output:
Accuracy of J48: 50.00% --------------------------------- Accuracy of PART: 50.00% --------------------------------- Accuracy of DecisionTable: 64.29% --------------------------------- Accuracy of DecisionStump: 21.43% ---------------------------------
Expected Output:(As displayed when running the command in terminal)
Accuracy of J48: 50.00%
---------------------------------
Accuracy of PART: 50.00%
---------------------------------
Accuracy of DecisionTable: 64.29%
---------------------------------
Accuracy of DecisionStump: 21.43%
---------------------------------
Any type of help is deeply appreciated.