How do I execute commands with parameters in Java??
I have tried using the below commands, but they somehow don't work!
Process p = Runtime.getRuntime().exec(new String[]{"php","/var/www/script.php -m 2"});
and:
String[] options = new String[]{"option1", "option2"};
Runtime.getRuntime().exec("command", options);