浏览代码

Update cmd

Abdullah Almsaeed 8 年之前
父节点
当前提交
48bb8b43ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tripal_core/api/tripal_core.jobs.api.inc

+ 1 - 1
tripal_core/api/tripal_core.jobs.api.inc

@@ -295,7 +295,7 @@ function tripal_execute_job($job_id, $redirect = TRUE) {
 
   // set the end time for this job
   if ($job->end_time == 0) {
-    $cmd = "drush trp-run-jobs --job_id=".escapeshellarg($job_id)." --username=".escapeshellarg($user->name)." --root=".DRUPAL_ROOT." 2>&1";
+    $cmd = "whoami; drush trp-run-jobs --job_id=".escapeshellarg($job_id)." --username=".escapeshellarg($user->name)." --root=".DRUPAL_ROOT." 2>&1";
     exec($cmd, $output, $return_code);
     $response = 'Response <br>';
     foreach($output as $line) {