Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

can i run script in ubuntu using java

    String[] cmd = { "sh", "MyFile.sh", "pathOfTheFile"};
    Runtime.getRuntime().exec(cmd);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #script #ubuntu #java
ADD COMMENT
Topic
Name
4+9 =