PHP Execution Method

Follow

Similar to the Perl Execution Method, a PHP Execution Method can also be created for JAMS to contain and automate PHP Scripts. After creating a new PHP Execution Method, On the Template tab, add these lines:

#!/usr/bin/env php
<?php
<<JAMS.Source>>
echo PHP_EOL;
?>

This will allow for any PHP script to be ran as a native JAMS Job without requiring the source to be saved and called as a Shell Script on Linux. This same method can be utilized for running nearly any script language, whether it's PHP as demonstrated here, Perl, Ruby or more.
Have more questions? Submit a request

Comments