standalong jupyterlab, sound warnings

This commit is contained in:
2020-11-22 18:38:14 +01:00
parent b83192d9ec
commit fc21e46ada
5 changed files with 14 additions and 0 deletions

2
feloff
View File

@@ -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()'

1
felon
View File

@@ -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()'

9
jupyterlab-on-ra Executable file
View File

@@ -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'

View File

@@ -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()'

View File

@@ -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()'