From: Hadaq Hades Date: Fri, 13 Aug 2021 13:08:57 +0000 (+0200) Subject: removed unnecessary code for etrax commands, mt X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=6a76d0c8c4d4062b40102b078a1af9ff4459d8a1;p=hadesdaq.git removed unnecessary code for etrax commands, mt --- diff --git a/main/startup.pl b/main/startup.pl index 8b9c697..91346d6 100755 --- a/main/startup.pl +++ b/main/startup.pl @@ -1094,26 +1094,29 @@ sub cmdParam() { croak "cmdParam: unexpected etrax name: $etrax. Exit.\n"; } - my $eb_port = $EB_Args_href->{'Main'}->{'PORT_BASE'} + $trbnum; - my $eb_ip = $EB_Args_href->{'Main'}->{'EB_IP'}; - - #- replace TRBNUM - $cmd =~ s{ # Substitue... - \$\{TRBNUM\} # ...a parameter - } - {$trbnum}gxms; # Raplace it with a TRB number - - #- replace EBIP - $cmd =~ s{ # Substitue... - \$\{EBIP\} # ...a parameter - } - {$eb_ip}gxms; # Raplace it with a EB IP - - #- replace EBPORT - $cmd =~ s{ # Substitue... - \$\{EBPORT\} # ...a parameter - } - {$eb_port}gxms; # Raplace it with a EB PORT + ## removed unnecessary code: MT, 2021-08-13 + # print "EB_Args:\n"; + # print Dumper $EB_Args_href; + # my $eb_port = $EB_Args_href->{'Main'}->{'PORT_BASE'} + $trbnum; + # my $eb_ip = $EB_Args_href->{'Main'}->{'EB_IP'}; + + # #- replace TRBNUM + # $cmd =~ s{ # Substitue... + # \$\{TRBNUM\} # ...a parameter + # } + # {$trbnum}gxms; # Raplace it with a TRB number + + # #- replace EBIP + # $cmd =~ s{ # Substitue... + # \$\{EBIP\} # ...a parameter + # } + # {$eb_ip}gxms; # Raplace it with a EB IP + + # #- replace EBPORT + # $cmd =~ s{ # Substitue... + # \$\{EBPORT\} # ...a parameter + # } + # {$eb_port}gxms; # Raplace it with a EB PORT $cmd = "source /home/hadaq/.bashrc; " . $cmd if ( $etrax =~ /hades?\w(\d{2})/ );