Last change
on this file since 686 was
580,
checked in by torrento, 13 years ago
|
add new scripts
|
-
Property svn:executable set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/bin/sh -xvf |
---|
2 | DATE=/bin/date |
---|
3 | GREP=/bin/grep |
---|
4 | AWK=/bin/awk |
---|
5 | ECHO=/bin/echo |
---|
6 | WC=/usr/bin/wc |
---|
7 | CAT=/bin/cat |
---|
8 | PRINTF=/usr/bin/printf |
---|
9 | FIND=/usr/bin/find |
---|
10 | MKDIR=/bin/mkdir |
---|
11 | XARGS=/usr/bin/xargs |
---|
12 | SORT=/bin/sort |
---|
13 | RM=/bin/rm |
---|
14 | TR=/usr/bin/tr |
---|
15 | CP=/bin/cp |
---|
16 | LS=/bin/ls |
---|
17 | CHMOD=/bin/chmod |
---|
18 | |
---|
19 | #Process cmd line args: the -src option is mandatory (source name as Abell85) |
---|
20 | sourceRadio= |
---|
21 | force= |
---|
22 | while [ $# -gt 0 ] |
---|
23 | do |
---|
24 | case "$1" in |
---|
25 | -src) sourceRadio=$2; shift;; |
---|
26 | -force) force="Yes";; |
---|
27 | -h) |
---|
28 | echo >&2 \ |
---|
29 | "usage: $0 -src souce" |
---|
30 | exit 1;; |
---|
31 | *) break;; # terminate while loop |
---|
32 | esac |
---|
33 | shift |
---|
34 | done |
---|
35 | |
---|
36 | #Path to public backupable path |
---|
37 | publicpath="/afs/in2p3.fr/home/c/campagne/public" |
---|
38 | |
---|
39 | |
---|
40 | #temporary files to synchronize scripts |
---|
41 | tmppublicpath=${TMPPUBLICPATH} |
---|
42 | $LS -l ${tmppublicpath} > /dev/null |
---|
43 | |
---|
44 | #Path of the utility scripts |
---|
45 | scriptpath=${SCRIPTPATH} |
---|
46 | |
---|
47 | #JEC 1/10/11 Use generic baodaqstatus name |
---|
48 | #the daq current irod status |
---|
49 | #tag=`${DATE} +%F` |
---|
50 | #OUT1=${publicpath}/baodaqstatus-${tag}.txt |
---|
51 | OUT1=${publicpath}/baodaqstatus-current.txt |
---|
52 | |
---|
53 | if [ ! -e ${OUT1} -o ! -r ${OUT1} ]; then |
---|
54 | $ECHO "FATAL (${scriptName}): ${OUT1} has a problem" |
---|
55 | exit 1 |
---|
56 | fi |
---|
57 | |
---|
58 | jobBatchName="scaMaker-$sourceRadio" |
---|
59 | jobLogName="${jobBatchName}.log.$$" |
---|
60 | |
---|
61 | qsub -P P_baoradio -l sps=1,irods=1,ct=2000,vmem=256M,fsize=700M -o $jobLogName -j yes -N $jobBatchName -m be -M ${LOGNAME}@lal.in2p3.fr -V <<EOF |
---|
62 | |
---|
63 | ${SCRIPTPATH}/scaextractor.sh ${sourceRadio} ${force} |
---|
64 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.