Here is my code:
String cmd = "bash -c \"php /Users/phyrrus9/Projects/java-web/test.php | say\"";
System.out.println("Executing: " + cmd);
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(cmd);
Yet, it is never executed. I can run that command from a shell and it works fine. Here is the contents of test.php
<?php
echo hello;
?>