Formation des utilisateurs - 9 mars 2016 ยป dirac-irods.sh
1 |
#! /bin/bash
|
---|---|
2 |
|
3 |
#JDL JobName = "test-irods"
|
4 |
#JDL Arguments = "aaabbb"
|
5 |
|
6 |
###############################################################################
|
7 |
# main #
|
8 |
###############################################################################
|
9 |
echo "Hello Dirac!" |
10 |
echo "Lets's play with iRODS now!" |
11 |
|
12 |
par1=$1 |
13 |
|
14 |
source $VO_VO_FRANCE_GRILLES_FR_SW_DIR/irods33/bashrc |
15 |
|
16 |
export irodsHost=ccirods.in2p3.fr |
17 |
export irodsPort=5555 |
18 |
export irodsHome=/FRGRID/home/pigay |
19 |
export irodsUserName=pigay |
20 |
export irodsZone=FRGRID |
21 |
export irodsAuthScheme=GSI |
22 |
|
23 |
ils -l
|
24 |
|
25 |
echo "...iget" |
26 |
iget -f parameter.dat
|
27 |
|
28 |
ls -l |
29 |
|
30 |
echo "...transformation" |
31 |
grep ${par1} parameter.dat >& parameter_${par1}.dat |
32 |
|
33 |
echo "...iput" |
34 |
iput parameter_${par1}.dat |
35 |
ils -l
|
36 |
|
37 |
exit 0
|