Can you call system commands from a java program? If so, how? For example, I want to write a simple program that tells me the time or date or even untar a file. It just never occured to me of doing that stuff before on Java. My system is linux 2.4.22 using BASH shell.
Brian R. Wainwright
posted 13 years ago
Hello, Take a look at the java.lang.Runtime class. It has methods for doing this stuff. ---BW