Author: glen                         Date: Thu Mar 26 21:24:55 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- errors to stderr

---- Files affected:
SOURCES:
   cacti-add_template.php (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SOURCES/cacti-add_template.php
diff -u SOURCES/cacti-add_template.php:1.3 SOURCES/cacti-add_template.php:1.4
--- SOURCES/cacti-add_template.php:1.3  Sun Oct  5 14:21:16 2008
+++ SOURCES/cacti-add_template.php      Thu Mar 26 22:24:50 2009
@@ -1,12 +1,17 @@
 #!/usr/bin/php
 <?php
 /*
+ * $Id$
+ */
+
+/*
 +---------------------------------------------------------------------------+
 | This script import cacti xml template files by command line               |
 | Author : Jean Francois Masure <[email protected]>             |
 | Version : 0.1 8 Aug 2005                                                  |
 | Modified by PLD Linux Team <http://www.pld-linux.org>                     |
 +---------------------------------------------------------------------------+
+
 */
 
 require_once '/usr/share/cacti/include/global.php';
@@ -23,7 +28,7 @@
 foreach ($argv as $xml_file) {
        $xml_data = file_get_contents($xml_file);
        if ($xml_data === false) {
-               echo "ERROR: cannot open $xml_file, exiting\n";
+               fprintf(STDERR, "ERROR: cannot open $xml_file, exiting\n");
                exit(1);
        }
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/cacti-add_template.php?r1=1.3&r2=1.4&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to