You can use Runtime
.getRuntime()
.exec()
or use the Process API.
The Process API allows you to get the output of the script, so you can have both communicate.
exitValue()
and getInputStream()
seems to be what you need.
More Related Contents:
- Rename Duplicate file name to another name in multiple folders [closed]
- Find everything between two XML tags with RegEx
- How to reliably guess the encoding between MacRoman, CP1252, Latin1, UTF-8, and ASCII
- Regular expression to validate username
- What are the differences between perl and java regex capabilities?
- Getting data from mysql [closed]
- want to add two string elemants, how could i do that?
- Java 8 Distinct by property
- Sending HTTP POST Request In Java
- java.util.Date vs java.sql.Date
- Hidden Features of Java
- Does assigning objects to null in Java impact garbage collection?
- How to use the legacy Apache HTTP client on Android Marshmallow?
- Serving static files from alternate path in embedded Jetty
- Is addition of byte converts to int because of java language rules or because of jvm?
- Difference in System. exit(0) , System.exit(-1), System.exit(1 ) in Java
- Java, How to add library files in netbeans?
- How should I give images rounded corners in Android?
- How to convert int[] to byte[]
- How to set a default entity property value with Hibernate
- java equivalent to php’s hmac-SHA1
- Lightweight Java Object cache API [closed]
- Hibernate sequence on oracle, @GeneratedValue(strategy = GenerationType.AUTO)
- How to convert TimeStamp to Date in Java?
- Resize image, maintain aspect ratio
- javax.net.ssl.SSLException: SSL handshake aborted Connection reset by peer while calling webservice Android
- LinkedBlockingQueue vs ConcurrentLinkedQueue
- How to reduce java concurrent mode failure and excessive gc
- Hashmap implementation to count the occurrences of each character
- Spring MVC How take the parameter value of a GET HTTP Request in my controller method?