META TOPICPARENT |
name="GangaSoftware" |
GANGA examples
Note1: There is an installed copy of GANGA software on the 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:
## 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
(for bash), or
## 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
(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:
### Function to export the grid stuff in $HOME to the /tmp/$USER:
exportlocal()
{
# ... the above stuff comes here ...
}
(for bash), or
### 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 ...
(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
find /tmp/$USER -print -exec touch {} \;
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
-- AndrasLaszlo - 2010-07-20 |