Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | ## Job Name |
---|
4 | #PBS -N copy |
---|
5 | |
---|
6 | ## Script to run a script in camelot, IPSL |
---|
7 | #PBS -m ae |
---|
8 | #PBS -M lluis.fita@lmd.jussieu.fr |
---|
9 | |
---|
10 | ## Joins standard and Error outputs in a single file |
---|
11 | #PBS -j oe |
---|
12 | |
---|
13 | ## Queue |
---|
14 | #PBS -q week |
---|
15 | |
---|
16 | ### Max run time |
---|
17 | #PBS -l walltime=168:00:00 |
---|
18 | |
---|
19 | ### Max memory |
---|
20 | #PBS -l vmem=20gb |
---|
21 | #PBS -l mem=20gb |
---|
22 | |
---|
23 | ## resources |
---|
24 | #PBS -l nodes=1:ppn=1 |
---|
25 | |
---|
26 | cd $PBS_O_WORKDIR |
---|
27 | |
---|
28 | dateval=`date "+%Y%m%d%H%M%S"` |
---|
29 | |
---|
30 | rm ${PBS_JOBNAME}.o* |
---|
31 | rm run_copy.log |
---|
32 | |
---|
33 | origin=`echo ${origdest} | tr '|' ' ' | awk '{print $1}'` |
---|
34 | destiny=`echo ${origdest} | tr '|' ' ' | awk '{print $2}'` |
---|
35 | |
---|
36 | date > run_copy.log |
---|
37 | rsync -va --exclude-from=${HOME}/etudes/WRF_LMDZ/svn/LMDZ_WRF/tools/NONcopy.inf -C --no-links ${origin} ${destiny} >& run_copy.log |
---|
38 | date >> run_copy.log |
---|
39 | |
---|
40 | ## e.g. # qsub -v origdest='medic950116|/bdd/PCER/workspace/lfita/etudes/WRFdynamicoSENS' copy.pbs |
---|
Note: See
TracBrowser
for help on using the repository browser.