Hi all, With the precious help of Christian's knowledge about bash, we made a shell script that accepts whatever bratmain config scripts for submitting them to crs. I did that to have an easy and fast way to reduce data at the local tracking level. I took Ian's bratmain script and updated it according to the new DC stuff (no hardcoded numbers anymore...well almost :) You can check out the stuff from brahms_app/do_app/reduce: brahms-cvs co brahms_app/do_app/reduce masterReduction.sh <- bash script ProductionReduction.C <- bratmain config. Give it a try, it's very easy. You should be bramreco to use it. Here is the help message from the bash script: --------------------------------------------------------------------------- Usage: masterReduction.sh [option] -h --help Gives this help -v --verbose Be verbose [0] -b --begin-run First run to use [0] -e --end-run Last run to use [0] -o --out Where the stuff is made [/brahms/data14/data] -c --config Job configuration [/brahms/u/ouerdane/reduce/ProductionReduction.C] -j --write-jsfs Make JSFs disabled -s --submit-jsfs Do submission disabled -n --email Who to notify [ekman@nbi.dk] For some action, use combination of options '-j', '-s'. '-s' alone : writes the JSFs IF NEEDED and then submit '-j' alone : forces a rewrite of the JSFs without job submission '-j' and '-s' : forces rewrite of the JSFs and then submits them ---------------------------------------------------------------------------- All you need to specify is an output dir. with write access (e.g. /brahms/dataxx/...) and valid run numbers (note: there's no possible check of the run validity, you should know what runs you want to process). There's the possibility to only write JSFs or submit them as well with or without rewriting the JSFs. I found it very useful. Hope you'll like it. Please, notify to yourself (-n option) and not to Claus Ekman ;-D Ciao Djam PS: a small trick -> in ~bramreco/bin, there's a small bash script called monitor.sh try bin/monitor.sh <run number> <seq number> (you should be of course bramreco and logged on a rcrsuser machine) It will give you the status of the sequence job in a fancy way :) (no need to say that this is NOT meant to replace crs_status.pl) -- Djamel Ouerdane ------------------------------------------o | Niels Bohr Institute | Home: | | Blegdamsvej 17, DK-2100 Ø | Jagtvej 141 2D, | | Fax: +45 35 32 50 16 | DK-2200 Copenhagen N | | Tel: +45 35 32 52 69 | +45 35 86 19 74 | | http://www.nbi.dk/~ouerdane | | ouerdane@nbi.dk | o---------------------------------------------------------o
This archive was generated by hypermail 2b30 : Tue Apr 30 2002 - 10:28:09 EDT