GBT OPERATIONS PROCEDURES |
Number: OP-07 |
Title: Running Glish Scripts |
Last Revision: 26JUN03 |
Glish is a scripting language that can be used in conjunction with C++ to develop and run distributed, loosely coupled, applications. For purposes of this procedure, Glish scripts are simplified command lines we can use to carry out multiple tasks associated with preparing the telescope for observing.
The character " ^ " is used below to emphasize spaces between script elements.
If you experience problems with the GO/IARDS interface check the glishd process. To do this you must login to the workstation "victor" as monctrl or gbtops.
More scripts will be added as they become available.
STEP |
ACTION | |
---|---|---|
1 |
From a Unix/Linux workstation, open an xterm window |
|
2 |
Ensure the correct environment variable is sourced. To confirm, enter pwd followed by pressing ENTER (/home/gbt/gbt.bash should be displayed. If not, enter: source ^ /home/gbt/gbt.bash) |
|
3 |
If the script must be run from a specific directory, change to that directory (cd ^ path/directory name) |
|
4 |
From the prompt, enter the glish script followed by pressing the ENTER key |
|
5 |
Monitor the xterm window and/or Cleo Messages application for problems as necessary |
Script |
Purpose | |
---|---|---|
source ^ controlRealGBT.bash |
Ensures real control of the telescope and instruments |
|
source ^ controlSimulator.bash |
Allows for telescope and instrument control in simulator mode via the mockup |
|
source ^ /home/gbt/gbt.bash |
Sources the primary home directory for running the GBT |
|
source ^ $FTOOLS/finit.sh |
Accesses the Ftools utility (for viewing/plotting FITS files) |
Script |
Purpose | |
---|---|---|
GO |
Starts the GBT Observe application with ALL devices |
|
GO ^ T |
Starts the GBT Observe application, but allows device selection |
|
GO ^ T ^ n |
Starts the GBT Observe application fixing a race condition with the antenna monitor. "n" can be any integer |
|
glish -l fixGoHang.g |
Resets glish calls after a M&C version change. |
|
IARDS |
Starts IARDS and AIPS++ routines used for reducing/plotting pointing observations |
Script |
Purpose | |
---|---|---|
victor% ps -elf | grep glishd |
Checks the status of the Glish daemon running (GO/IARDS interface) |
|
victor% sudo /sbin/run-glishd |
Starts Glish daemon processes |
Prepared by: Dave Rose, Operator
Last modified: 26 JUN 03