om6s --
NAME
om6s --
OSIRIS library of scripts
NAME
om6s - read or set expected switch values
SYNOPSIS
om6s [x] [-f(ile)|-k(eyword)]
DESCRIPTION
prints the position number, name, and switch values of the mechanism
ARGUMENTS
x - good|bad
-f - use contents of file
/kroot/rel/default/data/<service>_keyword_config_file
-k - use keywords (default)
OPTIONS
EXAMPLES
om6s good - set om2s switch values to good values
om6s bad - set om2s switch values to bad values
ENVIRONMENT VARIABLES
FILES
SERVERS & KEYWORDS
SCRIPTS CALLED
EXIT STATUS
0 - normal exit, no error
1 - script aborted by an interrupt
2 - syncheck error
3 - error parsing command line input
other errors...
Modification History:
2016 Mar 18 jlyke Original
2019 Apr 29 jlyke Allow both file and keyword info...
------------------------------------------------------
Boiler plate for "-h" support for command autohelp.
Formulate lockengpw
server specific stuff
define num
## Note that we are not using the good/bad for this motor
set good = ()
This set of "bad" reduces all switch positions with logical 8
11XXX1111 are the normal switch values (XXX means no switch)
11XXXB111 has logical 8 as "bad"
set bad = ()
case g*:
set val = ( $good )
breaksw
case b*:
set val = ( $bad )
breaksw
See Also
The shell script om6s
OSIRIS script index
Go to:
OSIRIS Home Page -
Instruments Home Page -
Keck Home Page
Last modified: Tue Jun 9 15:05:17 2020