Hi

It is possible to execute terminal commands in java, but is it possible to then get the output or result of the terminal command as input into a java program?

If so, may someone tell me how or point to materials that I can read.

Many thanks

Recommended Answers

Sure, take a look at Process and ProcessBuilder.

Jump to Post

All 2 Replies

MAny thanks. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.