Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

can i run script in ubuntu using java

    String[] cmd = { "sh", "MyFile.sh", "pathOfTheFile"};
    Runtime.getRuntime().exec(cmd);
Comment

PREVIOUS NEXT
Code Example
Java :: java print method 
Java :: unchecked exception in java 
Java :: main method in java 
Java :: what is exception in java 
Java :: java access a file 
Java :: lauch java batch 
Java :: this keyword java 
Java :: Float to bytes java 
Java :: selection sort linked list java 
Java :: reverse loop in java 
Java :: remove last node from linked list java 
Java :: multiple inheritance using interface in java 
Java :: how to check number of messages in kafka topic 
Java :: method parameters in java 
Java :: How to summon an item in bukkit 
Java :: gui open event spigot 
Java :: java generics 
Java :: like in cypher query 
Java :: how to use enumUtils in java 
Java :: how to add main and laucher activity in android manifest 
Java :: Java Enabling Assertions 
Java :: isnumeric matches in java 
Java :: android java how to stop activity from opening twice programatically 
Java :: hwo to create a list of 1 to n nums in java list 
Java :: Sample HashMap 
Java :: how to print all package in java 
Java :: random int between two values 
Java :: java clear scanner2 
Java :: horizontalAlignment center jlabel 
Java :: log messages not printing in springboot using org.slf4j.Logger; 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =