---++ GANGA examples _Note1_: There is an installed copy of _GANGA_ software on the [[http://www.grid.kfki.hu/twiki/bin/view/KFKIAFS/AfsSoftwares#GANGA][KFKI AFS]]. To activate it, follow the instructions of that homepage. _Note2_: If your home directory is located on AFS, it is advised to source the following shell script before logging on to the Grid: <verbatim> ## Make new .globus directory and export it: chmod -R 755 /tmp/$USER/globus >&/dev/null rm -rf /tmp/$USER/globus mkdir -p /tmp/$USER/globus cp $HOME/.globus/usercert.pem /tmp/$USER/globus/ cp $HOME/.globus/userkey.pem /tmp/$USER/globus/ cp $HOME/.globus/certificates /tmp/$USER/globus/ export X509_USER_CER=/tmp/$USER/globus/usercert.pem export X509_USER_KEY=/tmp/$USER/globus/userkey.pem export X509_CERT_DIR=/tmp/$USER/globus/certificates ## Make new .glite directory and export it: chmod -R 755 /tmp/$USER/glite >&/dev/null rm -rf /tmp/$USER/glite mkdir -p /tmp/$USER/glite cp -rd $HOME/.glite/* /tmp/$USER/glite/ export GLITE_USER_HOME=/tmp/$USER/glite </verbatim> (for _bash_), or <verbatim> ## Make new .globus directory and export it: chmod -R 755 /tmp/$USER/globus >&/dev/null rm -rf /tmp/$USER/globus mkdir -p /tmp/$USER/globus cp $HOME/.globus/usercert.pem /tmp/$USER/globus/ cp $HOME/.globus/userkey.pem /tmp/$USER/globus/ cp $HOME/.globus/certificates /tmp/$USER/globus/ setenv X509_USER_CER /tmp/$USER/globus/usercert.pem setenv X509_USER_KEY /tmp/$USER/globus/userkey.pem setenv X509_CERT_DIR /tmp/$USER/globus/certificates ## Make new .glite directory and export it: chmod -R 755 /tmp/$USER/glite >&/dev/null rm -rf /tmp/$USER/glite mkdir -p /tmp/$USER/glite cp -rd $HOME/.glite/* /tmp/$USER/glite/ setenv GLITE_USER_HOME /tmp/$USER/glite </verbatim> (for _tcsh_). This ensures that the necessary files are accessible even after your AFS tickets expire (as they are copied to some local directory). You could also put these inside a shell function or alias in your =.bashrc= or =.tcshrc=, like: <verbatim> ### Function to export the grid stuff in $HOME to the /tmp/$USER: exportlocal() { # ... the above stuff comes here ... } </verbatim> (for _bash_), or <verbatim> ### Alias to export the grid stuff in $HOME to the /tmp/$USER: alias exportlocal \ # ... the above stuff comes here, but put ' ; \' instead of new line, and continue in next line ... </verbatim> (for _tcsh_). If your home is on AFS, it is also advised to move also your working directory under =/tmp/$USER=, together with all the necessary files and directories, described in the following sections. To prevent that the regular cleanup cron job deletes some of your files from =/tmp/$USER= when they are too old, run the command <verbatim> find /tmp/$USER -print -exec touch {} \; </verbatim> after unpacking the below tarballs into =/tmp/$USER=. ---+++ Simple job submission with traditional JDL files ---+++ Mass submission of independent jobs: parameter scan with short calculations ---+++ Mass submission of chained jobs: parameter scan with long calculations -- Main.AndrasLaszlo - 2010-07-20
This topic: RmiGrid
>
WebHome
>
GangaSoftware
>
GangaExample
Topic revision: r1 - 2010-07-20 - AndrasLaszlo
Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback