Tuesday, February 18, 2014

How to execute linux shell statement in java


If I wrote a script behind. Sh keep in sdcard in two parameters (assuming that the wording of a and b. / XXX.sh a b)
I want to use the java statement is executed inside linux shell script, it should be how to write ah?
. Process p1 = new ProcessBuilder ("sh", "/ mnt / sdcard / XXX.sh", "a", "b") start ();
Written on it?
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Anyone? ? ? ?
Reply:
The following commands linux system

No comments:

Post a Comment