This page describes, or has links to descriptions of, all scripts used at the 40m.



Scripts that run all the time (usually):

Name of script

Computer where it lives

What it does

Notes

[#PSLWatch PSLWatch]

op340m

Runs lockFSS, lockMZ, lockPMC when appropriate

broken

[#autolockMCmain40m autolockMCmain40m]

op340m

watches the MC. Runs mcup and mcdown

[#FSSSlowServo FSSSlowServo]

op340m

Watches C1:PSL-FAST_MON and servos C1:PSL-SLOW_DC

[#blinky blinky]

anywhere

blinks a light if a script is alive

forked by mother script

[#RGAlogger RGAlogger]

op340m

gets data from RGA nightly

Runs as a cron job

autoburt

op340m

backs up EPICS control settings hourly

Runs as a cron job

rsync.backup

fb40m

backup minute trend files and /cvs/cds/caltech to the archive in Powell-Booth

Runs as a cron job

ndsproxy

nodus

Provides NDS access from off-site

EPICS gateway

nodus

Provides DAQ channel access from off-site

[#bobafett bobafett]

any

Useful for aligning suspended optics by hand

broken

statScreen

mafalda

Takes MEDM screen snapshots periodically

others

[#opticshutdown opticshutdown]

any machine in  scripts/SUS/

shutdown watchdogs for 5 hrs

useful for SUS diagnostic.


PSLWatch

FSSSlowServo

RGA logger

autolockMCmain40m

bobafett.pl

blinky

blinky is used to provide heart beat functions to scripts (e.g. PSLwatch and mcautolock40m) when that script dies, this one dies too.

usage: blinky <channel name> usage: blinky <channel name> <optional blink rate> usage: blinky <channel name> <required blink rate> <parent perl script pid>option 3 is for calling this function inside a perl script where the

Run on OP340m.

E.g. if the MC autolocker is not blinking log into OP340m, find the PID of autolockMCmain40m (1234, say) and type 'blinky C1:IOO-MC_AUTOLOCK_BEAT 1 1234 &'

Cron jobs

You are encouraged to make a copy of crontab files in /cvs/cds/caltech/crontab/ whenever you edit a crontab on a machine after confirming it works fine. This directory is svn managed. So do svn ci after you update a file.

nodus

The current crontab of controls@nodus is the following:

0 10 * * * /cvs/cds/caltech/scripts/backup/check_backup.sh
0,5,10,15,20,25,30,35,40,45,55 * * * * /cvs/cds/caltech/statScreen/bin/cronjob.sh
2,12,22,32,42,52 * * * * /cvs/cds/caltech/scripts/webStatus/webStatus.sh

check_backup.sh will check the daily backup status.

mafalda

attachment:mafalda_s.jpg

statScreen/bin/cronjob.sh will take screen shots of MEDM screens and post it on the web.

webStatus.sh uses tdsread to get a bunch of EPICS values and post them on some web page.