]> git.pld-linux.org Git - packages/cacti-add_template.git/commitdiff
- errors to stderr
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 26 Mar 2009 21:24:50 +0000 (21:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cacti-add_template.php -> 1.4

cacti-add_template.php

index 1dedcfe35e0faab3f1ee5470aca18e74dec5ede9..ff93bb906d5281c5e27c9fc759e7a9c2846ef3ee 100644 (file)
@@ -1,5 +1,9 @@
 #!/usr/bin/php
 <?php
+/*
+ * $Id$
+ */
+
 /*
 +---------------------------------------------------------------------------+
 | This script import cacti xml template files by command line               |
@@ -7,6 +11,7 @@
 | 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 @@ array_shift($argv);
 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);
        }
 
This page took 0.097675 seconds and 4 git commands to generate.