DataObjects/pman.links.ini
[Pman.Core] / Notify.php
index a91e3f9..b335ecf 100644 (file)
@@ -280,7 +280,9 @@ class Pman_Core_Notify extends Pman
         }
         
         // phpinfo();exit;
-        $tn = tempnam(ini_get('session.save_path'),'stdout') . '.stdout';
+        $tnx = tempnam(ini_get('session.save_path'),'stdout');
+        unlink($tnx);
+        $tn =  $tnx . '.stdout';
         $descriptorspec = array(
             0 => array("pipe", 'r'),  // stdin is a pipe that the child will read from
             1 => array("file", $tn, 'w'),  // stdout is a pipe that the child will write to
@@ -305,7 +307,7 @@ class Pman_Core_Notify extends Pman
         }
         $cmd = 'exec ' . $php . ' ' . $app . ' ' . $cmdOpts; //. ' &';
         
-       passthru($cmd);exit;
+       
         $pipe = array();
         echo "call proc_open $cmd\n";