Last change
on this file since 610 was
576,
checked in by campagne, 13 years ago
|
u_irods_baoradio pour BQS (jec)
|
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 -l u_sps_baoradio,u_irods,u_irods_baoradio,T=100000,M=256MB,scratch=700MB,platform=LINUX -eo -o $jobLogName -N $jobBatchName -mb -me -mu ${LOGNAME}@lal.in2p3.fr <<EOF |
---|
62 | /afs/in2p3.fr/home/c/campagne/private/work/AmasNancay/scaextractor.sh ${sourceRadio} ${force} |
---|
63 | EOF |
---|
Note: See
TracBrowser
for help on using the repository browser.