== Using the utility scripts == === Common Command Line Flags === All the python commands have some command line flags in common. If applicable this will be ||-h --help ||provides a list of the available command line options|| ||--version ||print the version string to the Standard Output and exit|| ||-v --verbose ||print lots of useful (or not) information about what is going on|| Where applicable the following options indicate which Control System to talk to: ||-g --gui ||the Tcs Gui interface|| ||-L --legacy ||the Legacy Control System (legacyServer)|| ||-l --lrs2 --ldas ||the LRS or LDAS control system (camra)|| ||-n --named ||the tcsnamed process (tcsnamed)|| ||-P --pfip ||the Prime Focus Instrument Package Control System (pfipServer)|| ||-p --pas ||the Payload Alignment System Control System (pasServer)|| ||-T --tcs ||the Telescope Control System (tcs_server)|| ||-t --tracker ||the Tracker Control System (tracker_server)|| ||-V --virus --vdas ||the Virus or VDAS Control System (camra)|| === Useful Commands: === * [wiki:HetDescription/jrf/chksys chksys] -- This bash script searches the process table and prints the lines associated with the control systems to the standard output. At this time it is a shell script with no command line flags. There is no general way to search for control systems so this script simply searchs by name. If your create a new control systems, then you will have to modifiy this script. There are no command line options. The script looks for the strings tracker_server, tcs_server, tcs_monitor, legacyServer, LogServer, pasServer, pfipServer, tcsnamed, camra_server, tcs_proxy, ldas_monitor, vdas_monitor, tcs_log_relay, Gui, apcServer, and startsys. * [wiki:HetDescription/jrf/chktmcs chktmcs] -- This bash script does a quick check of the TMCS listen log. A different file name on the command line will cause a search on the named file. The default file is /opt/het/hetdex/logs/Mon/listen/listen.log, which is a link to the current file. * [wiki:HetDescription/jrf/getSpectTemperatures getSpectTemperatures] -- display various aspects of the spectrograph temperatures from Virus or Lrs2. * [wiki:HetDescription/jrf/hettime hettime] -- convert between the various notions of time at HET; index time, Unix time, and ISO-8601 strings. * [wiki:HetDescription/jrf/listen listen] -- listen for TMCS messages and write them to a log file. * [wiki:HetDescription/jrf/monitor monitor] -- listen for messages from the Control Systems and record them in a database. * [wiki:HetDescription/jrf/startsys startsys] -- start some or all of the Control Systems. * [wiki:HetDescription/jrf/syscmd syscmd] -- send commands to the Control Systems. * [wiki:HetDescription/jrf/trajectory trajectory] -- create and run various types of trajectories. * [wiki:HetDescription/jrf/vnctrk vnctrk] -- create a VNC window to the tracker engineering computer system. * [wiki:HetDescription/jrf/template template] -- blank template for commands.