]> jspc29.x-matter.uni-frankfurt.de Git - daqtools.git/commitdiff
cts_gui displays help also without DAQOPSERVER, JM
authorHadaq in Frankfurt <hadaq@frankfurt>
Thu, 7 Feb 2013 16:40:04 +0000 (17:40 +0100)
committerHadaq in Frankfurt <hadaq@frankfurt>
Thu, 7 Feb 2013 16:40:04 +0000 (17:40 +0100)
base/startup_example.sh
web/cts_gui

index fb98a086ba636fbe3f2d4dc0ef450e6afef6c317..abba693c6de7d413defe6b97a50f6e2acd038fc4 100755 (executable)
@@ -1,4 +1,5 @@
 #This example start-up script as to be adapted to your setup!
+#0x8000 is assumed to be the address of the central board running CTS and GbE
 
 
 ####### TrbNet           #######
index f7d5e0b9e315e963600a7fc117a9761770a9a9d9..9b3e96e06e0e9e2d5893f4226bf828862b031750 100755 (executable)
@@ -55,12 +55,6 @@ EOFHELP
 
 
 # Gather and check parameters
-if (!$ENV{'DAQOPSERVER'}) {
-  print "ERROR: Missing DAQOPSERVER enviroment variable !\n";
-  print "use 'export DAQOPSERVER=...' to specify the DAQOPSERVER used by the webserver\n\n";
-  exit;
-}
-
 my $host = 'localhost';
 my $port = 1234;
 my $openxterm = 0;
@@ -82,6 +76,13 @@ help();
 exit;
 }
 
+if (!$ENV{'DAQOPSERVER'}) {
+  print "ERROR: Missing DAQOPSERVER enviroment variable !\n";
+  print "use 'export DAQOPSERVER=...' to specify the DAQOPSERVER used by the webserver\n\n";
+  exit;
+}
+
+
 
    my $sharedDir     = "/dev/shm/cts-monitor-$port";
    my $htdocsDumpDir = "htdocs/monitor-$port";