¿Cómo ejecutar el comando con parámetros?
¿Cómo ejecutar el comando en Java con parámetros?
Process p = Runtime.getRuntime().exec(new String[]{"php","/var/www/script.php -m 2"});
No funciona.
String[] options = new String[]{"option1", "option2"};
Runtime.getRuntime().exec("command", options);
No funciona también, porque no especifica el parámetro "m".