I need to run a program from within a java application, and pick up the returned value.
I want to send a string from a variable to the file called [url removed, login to view], and pick up the result. This is currently a win32 binary, but the method should also work for linux.
Here is an example of how I run [url removed, login to view] manually from command prompt, and its return value:
c:\> [url removed, login to view] 1234
So I need a java function that can send the "1234" string to the exe file, and fetch "14124123412341234124" into a variable.
I hope you can help.
1) Complete and fully-functional working code in form of source code
2) Must work for win32 and linux