Index: trunk/ippMonitor/czartool/czarpoll.pl
===================================================================
--- trunk/ippMonitor/czartool/czarpoll.pl	(revision 38258)
+++ trunk/ippMonitor/czartool/czarpoll.pl	(revision 40008)
@@ -40,4 +40,14 @@
 
 # for now hardcode two databases. Later I'll look into handling a variable number
+unless (-d $config->getGnuplotPath() . "/gpc1") {
+    unless (mkdir($config->getGnuplotPath() . "/gpc1")) {
+	die "Cannot create output directory " . $config->getGnuplotPath() . "/gpc1\n";
+    }
+}
+unless (-d $config->getGnuplotPath() . "/gpc2") {
+    unless (mkdir($config->getGnuplotPath() . "/gpc2")) {
+	die "Cannot create output directory " . $config->getGnuplotPath() . "/gpc2\n";
+    }
+}
 my $plotter1 = czartool::Plotter->new_file($config, $gpc1Db, $config->getGnuplotPath() . "/gpc1", $save_temps);
 my $plotter2 = czartool::Plotter->new_file($config, $gpc2Db, $config->getGnuplotPath() . "/gpc2", $save_temps);
