How to execute command with parameters?

See if this works (sorry can’t test it right now)

Runtime.getRuntime().exec(new String[]{"php","/var/www/script.php", "-m", "2"});

Leave a Comment