// $jobid // $memory // $status // $status_step // ***************** // get the name of the executable as plugin name $plugin_command_array = explode(' ', $command); $plugin_name_array = explode('/', $plugin_command_array[0]); $plugin_name = end($plugin_name_array); array_shift($plugin_command_array); $parameters = implode(' ', $plugin_command_array); // get user if from username $user_id = UserC::getID($username); // create the feed if first batch job if ($feed_id == -1) { $feed_id = FeedC::create($user_id, $plugin_name, $feedname, $status); } // create the feed directory $user_path = joinPaths(CHRIS_USERS, $username); $plugin_path = joinPaths($user_path, $plugin_name); $feed_path = joinPaths($plugin_path, $feedname . '-' . $feed_id); // create job directory $job_path = $feed_path; if ($jobid != '') { $job_path .= '/' . $jobid; } // Setup directories (including ssh/host vars) // do we force this plugin to run locally as chris? $force_chris_local = in_array($plugin_name, explode(',', CHRIS_RUN_AS_CHRIS_LOCAL)); $host = CLUSTER_HOST; if ($status == 100 || $force_chris_local) {