Skip to content

Instantly share code, notes, and snippets.

View samdb-master_.gitignore
/target/
!.mvn/wrapper/maven-wrapper.jar
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
View Executing a linux bash command from a java program and reading the response of it which spans multiple lines
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class cmdExecute2 {
public static void main(String[] args) {
String osName = System.getProperty("os.name");
String rawVersion = null;