Red Hat ENTERPRISE LINUX WS 2.1 - Przewodnik Instalacji Strona 258

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 257
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`
Przeglądanie stron 257
1 2 ... 253 254 255 256 257 258 259 260 261 262 263 ... 271 272

Komentarze do niniejszej Instrukcji

Brak uwag