From fc21e46ada51a32f9fb88d2892806ee2fa6a5451 Mon Sep 17 00:00:00 2001 From: lemke_h Date: Sun, 22 Nov 2020 18:38:14 +0100 Subject: [PATCH] standalong jupyterlab, sound warnings --- feloff | 2 ++ felon | 1 + jupyterlab-on-ra | 9 +++++++++ laseroff | 1 + laseron | 1 + 5 files changed, 14 insertions(+) create mode 100755 jupyterlab-on-ra diff --git a/feloff b/feloff index 476067c..885f034 100755 --- a/feloff +++ b/feloff @@ -1,2 +1,4 @@ #!/bin/bash caput SGE-CPCW-72-EVR0:FrontUnivOut15-Ena-SP 0 +/sf/bernina/anaconda/bernina_envs/bernina37/bin/python -c 'import pyttsx3;e = pyttsx3.init();e.say("FEL beam blocked");e.runAndWait()' + diff --git a/felon b/felon index 79be652..1f6bef8 100755 --- a/felon +++ b/felon @@ -1,2 +1,3 @@ #!/bin/bash caput SGE-CPCW-72-EVR0:FrontUnivOut15-Ena-SP 1 +/sf/bernina/anaconda/bernina_envs/bernina37/bin/python -c 'import pyttsx3;e = pyttsx3.init();e.say("FEL beam on");e.runAndWait()' diff --git a/jupyterlab-on-ra b/jupyterlab-on-ra new file mode 100755 index 0000000..814e23d --- /dev/null +++ b/jupyterlab-on-ra @@ -0,0 +1,9 @@ +#!/bin/bash +if [ -z "$1" ] +then + USER=$(zenity --entry --text="Enter user name for opening firefox") +else + USER=$1 +fi + +ssh -S none $USER@ra 'source /sf/bernina/bin/anaconda_env && salloc -p shared jupyter lab --ip $HOSTNAME --no-browser' diff --git a/laseroff b/laseroff index 7225c05..da4bbd9 100755 --- a/laseroff +++ b/laseroff @@ -1,3 +1,4 @@ #!/bin/bash caput SLAAR21-LTIM01-EVR0:FrontUnivOut3_SOURCE2 "HIGH" caput SLAAR21-LPSYS-ESB:SHUT_TRANS "ON" +/sf/bernina/anaconda/bernina_envs/bernina37/bin/python -c 'import pyttsx3;e = pyttsx3.init();e.say("Laser blocked");e.runAndWait()' diff --git a/laseron b/laseron index 1fee1d5..9c2ef67 100755 --- a/laseron +++ b/laseron @@ -1,3 +1,4 @@ #!/bin/bash caput SLAAR21-LTIM01-EVR0:FrontUnivOut3_SOURCE2 "LOW" caput SLAAR21-LPSYS-ESB:OPEN_TRANS "ON" +/sf/bernina/anaconda/bernina_envs/bernina37/bin/python -c 'import pyttsx3;e = pyttsx3.init();e.say("Laser open");e.runAndWait()'