Notify.php
[Pman.Core] / Notify.php
index 0b0755d..902b7a4 100644 (file)
@@ -68,7 +68,7 @@ class Pman_Core_Notify extends Pman
             'default' => 1000,
             'short' => 'L',
             'min' => 0,
-            'max' => 1000,
+            'max' => 999,
         ),
         'dryrun' => array(
             'desc' => 'Dry run - do not send.',
@@ -158,7 +158,7 @@ class Pman_Core_Notify extends Pman
             
         }
      
-        //DB_DataObject::debugLevel(1);
+        DB_DataObject::debugLevel(1);
         $w = DB_DataObject::factory($this->table);
         
         if (!$showold) {
@@ -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