If for example I chose to run a bash script that would output (echo) the time e.g. CheckDate.sh. How could I run this from Java and then print the result of the bash script (the date) in my Java program?
If for example I chose to run a bash script that would output (echo)
Share
Try this code.