Quantcast
Channel: Running interactive shell program in Java - Stack Overflow
Viewing all articles
Browse latest Browse all 4

Answer by MaanooAk for Running interactive shell program in Java

$
0
0

The exact equivalent of system("vi") is:

final ProcessBuilder p = new ProcessBuilder("vi");p.redirectInput(Redirect.INHERIT);p.redirectOutput(Redirect.INHERIT);p.redirectError(Redirect.INHERIT);p.start().waitFor();

(I know this is with 3 years delay, but for the others with same problem)


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>