From: hadaq Date: Fri, 29 Mar 2019 09:40:24 +0000 (+0100) Subject: Changed MDC LV switch scripts to EPICS X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=27de5418a011e0a8687edd0309e9700443446b28;p=hadesdaq.git Changed MDC LV switch scripts to EPICS --- diff --git a/control/mdcLVgui/S0/200x b/control/mdcLVgui/S0/200x index 249e643..6fa5cb2 100755 --- a/control/mdcLVgui/S0/200x +++ b/control/mdcLVgui/S0/200x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 1 -S 1 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S0/210x b/control/mdcLVgui/S0/210x index 46f2eb7..c176beb 100755 --- a/control/mdcLVgui/S0/210x +++ b/control/mdcLVgui/S0/210x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 2 -S 1 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S0/220x b/control/mdcLVgui/S0/220x index 422f613..4833f8a 100755 --- a/control/mdcLVgui/S0/220x +++ b/control/mdcLVgui/S0/220x @@ -1,5 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 3 -S 1 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S0/230x b/control/mdcLVgui/S0/230x index 3400905..05857d8 100755 --- a/control/mdcLVgui/S0/230x +++ b/control/mdcLVgui/S0/230x @@ -1,6 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 4 -S 1 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S1/201x b/control/mdcLVgui/S1/201x index 3799388..f167e3f 100755 --- a/control/mdcLVgui/S1/201x +++ b/control/mdcLVgui/S1/201x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AA5E702000000A4 0'" \ No newline at end of file +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 1 -S 2 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S1/211x b/control/mdcLVgui/S1/211x index ee55a3c..51f73a7 100755 --- a/control/mdcLVgui/S1/211x +++ b/control/mdcLVgui/S1/211x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A14E3020000008B 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 2 -S 2 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S1/221x b/control/mdcLVgui/S1/221x index b81ec71..b438164 100755 --- a/control/mdcLVgui/S1/221x +++ b/control/mdcLVgui/S1/221x @@ -1,5 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A5CDB02000000E5 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 3 -S 2 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S1/231x b/control/mdcLVgui/S1/231x index 6d24b1e..982114f 100755 --- a/control/mdcLVgui/S1/231x +++ b/control/mdcLVgui/S1/231x @@ -1,6 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3ABEF0020000002A 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 4 -S 2 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S2/202x b/control/mdcLVgui/S2/202x index 387e6c1..ced9b87 100755 --- a/control/mdcLVgui/S2/202x +++ b/control/mdcLVgui/S2/202x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 0'" \ No newline at end of file +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 1 -S 3 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S2/212x b/control/mdcLVgui/S2/212x index a4896e3..271dc51 100755 --- a/control/mdcLVgui/S2/212x +++ b/control/mdcLVgui/S2/212x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 2 -S 3 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S2/222x b/control/mdcLVgui/S2/222x index f0affe5..10100eb 100755 --- a/control/mdcLVgui/S2/222x +++ b/control/mdcLVgui/S2/222x @@ -1,5 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 3 -S 3 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S2/232x b/control/mdcLVgui/S2/232x index ce0233f..5a2182d 100755 --- a/control/mdcLVgui/S2/232x +++ b/control/mdcLVgui/S2/232x @@ -1,6 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 4 -S 3 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S3/203x b/control/mdcLVgui/S3/203x index f4ad3fb..e9a420f 100755 --- a/control/mdcLVgui/S3/203x +++ b/control/mdcLVgui/S3/203x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A11DA0200000017 0'" \ No newline at end of file +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 1 -S 4 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S3/213x b/control/mdcLVgui/S3/213x index 8959932..b4c9470 100755 --- a/control/mdcLVgui/S3/213x +++ b/control/mdcLVgui/S3/213x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A3AD90200000017 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 2 -S 4 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S3/223x b/control/mdcLVgui/S3/223x index bdeb03c..ac7edac 100755 --- a/control/mdcLVgui/S3/223x +++ b/control/mdcLVgui/S3/223x @@ -1,5 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A05E5020000007B 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 3 -S 4 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S3/233x b/control/mdcLVgui/S3/233x index cbdca2a..e457e30 100755 --- a/control/mdcLVgui/S3/233x +++ b/control/mdcLVgui/S3/233x @@ -1,6 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A53E602000000A9 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 4 -S 4 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S4/204x b/control/mdcLVgui/S4/204x index b2342bf..9a99013 100755 --- a/control/mdcLVgui/S4/204x +++ b/control/mdcLVgui/S4/204x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 0'" \ No newline at end of file +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 1 -S 5 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S4/214x b/control/mdcLVgui/S4/214x index 912ebf7..dd55771 100755 --- a/control/mdcLVgui/S4/214x +++ b/control/mdcLVgui/S4/214x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 2 -S 5 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S4/224x b/control/mdcLVgui/S4/224x index a0d620b..6c81e35 100755 --- a/control/mdcLVgui/S4/224x +++ b/control/mdcLVgui/S4/224x @@ -1,5 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 3 -S 5 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S4/234x b/control/mdcLVgui/S4/234x index 06b44fc..4a6e56f 100755 --- a/control/mdcLVgui/S4/234x +++ b/control/mdcLVgui/S4/234x @@ -1,6 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 1'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 4 -S 5 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S5/205x b/control/mdcLVgui/S5/205x index f1b9351..e665a6e 100755 --- a/control/mdcLVgui/S5/205x +++ b/control/mdcLVgui/S5/205x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6EE302000000DC 0'" \ No newline at end of file +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 1 -S 6 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S5/215x b/control/mdcLVgui/S5/215x index 79e7b67..0c20933 100755 --- a/control/mdcLVgui/S5/215x +++ b/control/mdcLVgui/S5/215x @@ -1,4 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A6FDA020000009C 0'" +#!/bin/bash +#set -xv + +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 2 -S 6 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S5/225x b/control/mdcLVgui/S5/225x index 25b042f..426e52f 100755 --- a/control/mdcLVgui/S5/225x +++ b/control/mdcLVgui/S5/225x @@ -1,5 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3A1FF4020000005E 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs + +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 3 -S 6 + + sleep 1 +" +' diff --git a/control/mdcLVgui/S5/235x b/control/mdcLVgui/S5/235x index 42783d3..edc893d 100755 --- a/control/mdcLVgui/S5/235x +++ b/control/mdcLVgui/S5/235x @@ -1,6 +1,15 @@ -#!/bin/bash -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 2'" -sleep 5 -command_client.pl -e etraxp204 -c "/home/hadaq/bin/writetty.sh 'OWDS 3AF6DB0200000076 0'" +#!/bin/bash +#set -xv +xterm -e bash --login -c ' + ssh hadaq@lxhadesdaqp " + source /home/hadaq/.bash_profile + #set -xv +( which epics >/dev/null 2>&1 && . epics -q ) || export EPICS_BASE=/home/hadaq/EPICS/EPICS-3.15.6/base/ +PERLLIB=\${EPICS_BASE}lib/perl:~/trbsoft/hadesdaq/nettools:~/trbsoft/daqtools/perllibs +cd ~/trbsoft/hadesdaq/utils && MDC_Powercycle_2PSx.pl -P 4 -S 6 + + sleep 1 +" +'