I am trying to trigger the running of a shell script using PHP. Essentially, when a user completes an action on our website programmed in PHP, we want to trigger a shell script which itself calls a Java file. Thanks in advance!
+2
A:
See shell_exec()
, exec()
and other Program execution functions
NullUserException
2010-09-20 18:57:11
And you can execute the java file directly without invoking a shell script to invoke the java. <?php exec('java -Xmx1024m -jar "/home/blahblahblah/mydomain/testjava/Test.jar"'); ?> for example.
Chris
2010-09-20 18:57:58