I am running a command line program as follows:
java -jar myjar.jar -host localhost MonkeyProject/BAT_Login_Online_V1.mt
Which prints the following output:
result: OK
I am running the above command in a loop and want to read the output printed on the console in my script to make some decisions.
So how do i read it in the script?
java -jar myjar.jar ... | myscriptshould work. Is that what you're asking? Is your script already written?