Hi,
I have a shell script named test.sh
in /tmp/padm
folder.
In that shell script I have a single statement
echo "good"
I am trying to run the shell script using Java code.
String cmd=("/tmp/padm/.test.sh");
Runtime rt = Runtime.getRuntime();
Process pr=rt.exec(cmd);
But my problem is that I am not able to see "good" which is the output of the shell script.
How can I get the script to run?