[LON-CAPA-cvs] cvs: loncom /xml lonplot.pm

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 28 Jun 2004 17:02:27 -0000


matthew		Mon Jun 28 13:02:27 2004 EDT

  Modified files:              
    /loncom/xml	lonplot.pm 
  Log:
  Ignore error messages on gnuplot version probing.
  
  
Index: loncom/xml/lonplot.pm
diff -u loncom/xml/lonplot.pm:1.98 loncom/xml/lonplot.pm:1.99
--- loncom/xml/lonplot.pm:1.98	Mon Jun 28 11:42:49 2004
+++ loncom/xml/lonplot.pm	Mon Jun 28 13:02:27 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Dynamic plot
 #
-# $Id: lonplot.pm,v 1.98 2004/06/28 15:42:49 matthew Exp $
+# $Id: lonplot.pm,v 1.99 2004/06/28 17:02:27 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -43,7 +43,7 @@
     #
     # Determine the version of GNUPLOT
     $weboutputformat = 'gif';
-    $versionstring = `gnuplot --version`;
+    $versionstring = `gnuplot --version 2>/dev/null`;
     if ($versionstring =~ /^gnuplot 4/) {
         $weboutputformat = 'png';
     }