1

Executing a .exe or .linux file in Java during Run time

view story
linux-howto

http://stackoverflow.com – I am trying to create a function within a Java Class that can execute a .exe or a .linux file during runtime. The program is espresso.exe (for Windows OS) and espresso.linux for (Linux based systems) Typically, the way to run the program is by going to command line, and going to the folder in which the executable is stored and typing: (in Command Prompt) espresso A0.txt > m.txt or espresso A0.txt (which returns the output in cmd) (in linux Terminal) ./espresso.linux A0.txt > m.txt or ./espresso.linux A0.txt (which returns the output in the terminal window) Here A0.txt is the input arg (HowTos)