From: Hadaq in Frankfurt Date: Thu, 7 Feb 2013 16:40:04 +0000 (+0100) Subject: cts_gui displays help also without DAQOPSERVER, JM X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d5c27cf0d1660fb10081aae9953b96ea58a2d0d6;p=daqtools.git cts_gui displays help also without DAQOPSERVER, JM --- diff --git a/base/startup_example.sh b/base/startup_example.sh index fb98a08..abba693 100755 --- a/base/startup_example.sh +++ b/base/startup_example.sh @@ -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 ####### diff --git a/web/cts_gui b/web/cts_gui index f7d5e0b..9b3e96e 100755 --- a/web/cts_gui +++ b/web/cts_gui @@ -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";