Formation des utilisateurs - 13 février 2014 » irods_dirac_IPHC.sh
| 1 |
#!/bin/sh
|
|---|---|
| 2 |
###############################################################################
|
| 3 |
# main #
|
| 4 |
###############################################################################
|
| 5 |
echo "Hello Dirac!" |
| 6 |
echo "Lets's play with iRODS now!" |
| 7 |
|
| 8 |
par1=$1 |
| 9 |
|
| 10 |
# positionner l'environnement pour les commandes iRODS
|
| 11 |
source $VO_VO_FRANCE_GRILLES_FR_SW_DIR/irods-3.3/bashrc |
| 12 |
|
| 13 |
# configuration des clients
|
| 14 |
export irodsHost=sbgires1.in2p3.fr |
| 15 |
export irodsPort=1247 |
| 16 |
export irodsUserName=cbiscarat |
| 17 |
export irodsZone=IPHC |
| 18 |
export irodsAuthScheme=GSI |
| 19 |
|
| 20 |
ienv |
| 21 |
ils |
| 22 |
|
| 23 |
echo "...iget" |
| 24 |
iget -f parameter.dat
|
| 25 |
|
| 26 |
ls -l |
| 27 |
|
| 28 |
echo "...transformation" |
| 29 |
grep ${par1} parameter.dat >& parameter_${par1}.dat |
| 30 |
|
| 31 |
echo "...iput" |
| 32 |
iput parameter_${par1}.dat |
| 33 |
ils -l
|
| 34 |
|
| 35 |
exit 0
|
| 36 |
|