#!/bin/zsh
export PATH=`pwd`/iRODS/clients/icommands/bin:$PATH
alias ils='echo $IRODS_PWD | ils --irodsHost $IRODS_HOST --irodsHome $IRODS_HOME --irodsPort $IRODS_PORT --irodsZone $IRODS_ZONE --irodsUserName $IRODS_USR'
alias iget='echo $IRODS_PWD | iget --irodsHost $IRODS_HOST --irodsHome $IRODS_HOME --irodsPort $IRODS_PORT --irodsZone $IRODS_ZONE --irodsUserName $IRODS_USR'
ils
iget /in2p3/km3net/mc/atm_muon/KM3NeT_-00000001_20171212/v5.2/reco/mcv5.2.mupage_50T.sirene.jte.jchain.aanet.668.root
if [ -f mcv5.2.mupage_50T.sirene.jte.jchain.aanet.668.root ]; then
	ls -lhrt
else 
	echo "File is not downloaded"
	exit 1
fi
