Difference between revisions of "How to add scripts to Start/End of run process"
From PREX Wiki
Jump to navigationJump to search (Created page with "* [https://hallaweb.jlab.org/wiki/index.php/Installing_CODA2.6#MSQL_and_COOL_databases Bob's instruction] in Hall A wiki is valid and accurate (as of May 3, 2019). First, read...") |
|||
Line 6: | Line 6: | ||
Our script is located at /adaqfs/home/apar/scripts/ | Our script is located at /adaqfs/home/apar/scripts/ | ||
− | + | 0. Before start editing, it would be safer to make a copy of the current msql. | |
> msqldump parity > ~/pking/msql_dump/parity_<date><a-z>.sql | > msqldump parity > ~/pking/msql_dump/parity_<date><a-z>.sql | ||
(We may want to decide more general place to collect these copies later...) | (We may want to decide more general place to collect these copies later...) | ||
− | + | 1. Add scripts to msql database | |
> cedit | > cedit | ||
Go to File -> Open -> Select Run type (here we selected ALL_PREX) | Go to File -> Open -> Select Run type (here we selected ALL_PREX) | ||
Line 20: | Line 20: | ||
Save and exit. | Save and exit. | ||
− | + | 2. Make a copy of the current msql database | |
(We may want to decide more general place to collect these copies later...) | (We may want to decide more general place to collect these copies later...) | ||
> msqldump parity > ~/pking/msql_dump/parity_<date><a-z>.sql | > msqldump parity > ~/pking/msql_dump/parity_<date><a-z>.sql |
Revision as of 14:41, 3 May 2019
- Bob's instruction in Hall A wiki is valid and accurate (as of May 3, 2019). First, read this.
Note: Any work here should be consulted with the DAQ experts first (Bob, Paul K, Cameron, ..)
- Example: adding fastEpicsLogger script to start process:
Our script is located at /adaqfs/home/apar/scripts/
0. Before start editing, it would be safer to make a copy of the current msql.
> msqldump parity > ~/pking/msql_dump/parity_<date><a-z>.sql (We may want to decide more general place to collect these copies later...)
1. Add scripts to msql database
> cedit Go to File -> Open -> Select Run type (here we selected ALL_PREX)Select where you want to run your script, double click will open a window. Go to scripts and add your script. To run the script in the background, add & at the end. Once done, click Ok.
Save and exit.
2. Make a copy of the current msql database
(We may want to decide more general place to collect these copies later...) > msqldump parity > ~/pking/msql_dump/parity_<date><a-z>.sql
3. Once done with msql database, do the translation to COOL database. This has to be done every time you change the msql database for the configuration.
In rcgui, Options -> Coda2 Database -> Select Run types. It will open DB2COOL window. Select your run type and click OK.