4 ms·
public class Hello { public static void main(String[] args) { StringBuffer output = new StringBuffer(); Process p; try { p = Runtime.get
by uh-0h 10y ago
public class Hello {
public static void main(String[] args) {
StringBuffer output = new StringBuffer();
Process p;
try {
p = Runtime.getRuntime().exec("pwd");
p.waitFor();
java.io.BufferedReader reader =
new java.io.BufferedReader(new java.io.InputStreamReader(p.getInputStream()));
String line = "";
while ((line = reader.readLine())!= null) {
output.append(line + "\n");
}
} catch (Exception e) {
e.printStackTrace();
}
System.out.println(output.toString());
}
}
/home/jobe/runs/jobe_AnIK6J
probably not a good sign....
Do python repls let you execute anything on the host?