
258 Appendix
DONE
INDEX
INDEX
4. Click File → Save as
5. Save the file as heliumlimit in the installation directory of T
OPSPIN
(default is /opt/topspin) in the subdirectory conf/instr/<SPECT>
16.1.1.2 Create shell script ’heliumwarn’ for email notification
In this chapter you find an example for the shell script that will be execute the
email notification in case the helium level is less than the entry (in %) in the file
heliumlimit
1. Click <red hat> → Editors → Text Ed itor
2. A window New Document - Text Editor will appear
3. Copy the following example in the file
#!/bin/sh
# send an email when the helium level is too low
################################################################
#------------------------
# user defined variables:
#------------------------
ADDRESSES="person1@domain person2@domain person3@domain"
INSTRUMENT="spectrometer identification"
MAIL="/usr/bin/mutt"
###############################################################
# no more changes are needed below this point. You may tailor #
# the variable MSG for specific needs though. Be careful! #
###############################################################
#------------------------------
# catch command line arguments:
#------------------------------
MYSELF=$0
LEVEL=$1
LIMIT=$2
#---------------------------------------
# get the name of the spectrometer host:
#---------------------------------------
HOST=`hostname -f`
Comentários a estes Manuais