Notify.php
authorAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 08:01:11 +0000 (16:01 +0800)
committerAlan Knowles <alan@akkbhome.com>
Sun, 10 Apr 2011 08:01:11 +0000 (16:01 +0800)
Notify.php

index 81bd12f..8354ef0 100644 (file)
@@ -80,7 +80,7 @@ class Pman_Core_Notify extends Pman
         $cwd = $sn[0] == '/' ? dirname($sn) : dirname(realpath(getcwd() . $sn)); // same as run on.. (so script should end up being same relatively..)
         $app = $cwd . '/' . basename($_SERVER["SCRIPT_NAME"]) . '  ' . $this->target . '/'. $id;
         $cmd = $php . ' ' . $app. ' &';
-        echo $cmd . "\n";
+        //echo $cmd . "\n";
         $pipe = array();
         $p = proc_open($cmd, $descriptorspec, $pipes, $cwd );
         $this->pool[] = array('proc' => $p, 'out' => $tn,  'cmd' => $cmd);
@@ -90,8 +90,8 @@ class Pman_Core_Notify extends Pman
         $pool = array();
         foreach($this->pool as $p) {
             $ar = proc_get_status($p['proc']);
-            print_r($p);
-            print_r($ar);
+           // print_r($p);
+            //print_r($ar);
             if ($ar['running']) {
                 $pool[] = $p;
                 continue;