Answers for "Java code to launch shell script with arguments"

0

Java code to launch shell script with arguments

String cmd= "./copyFile.sh file1Name file2Name" ; // Path to Script and paramters $1 $2 used inside the script
ProcessBuilder pb = new ProcessBuilder(cmd. split(" ")); 
Process pr = pb.start();
Posted by: Guest on August-29-2020

Code answers related to "Java code to launch shell script with arguments"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language