From d5c27cf0d1660fb10081aae9953b96ea58a2d0d6 Mon Sep 17 00:00:00 2001 From: Hadaq in Frankfurt Date: Thu, 7 Feb 2013 17:40:04 +0100 Subject: [PATCH] cts_gui displays help also without DAQOPSERVER, JM --- base/startup_example.sh | 1 + web/cts_gui | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) 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"; -- 2.43.0