Next: What does the script
Up: Sample scripts for experiment
Previous: Sample scripts for experiment
- The first thing to do is to prepare the tarball(s) with all software you
want to install.
The content of this (these) tarball(s) must include at least the following
scripts/tools:
- install_tool : this is an experiment-dependent tool to install
the experiment software
-install_sw : the script for the software installation.
It is invoked only if the install_tool result was
error free.
-validation_sw : the script for the software validation.
It is care of the Software Manager to provide/decide
the way to validate an installation.
-uninstall_sw : the script for software removal.
-run_sw : the script to run over a sample of data. To use it the
software should be already installed and validated.
Togheter with these scripts, the tarball(s) file will contain all needed files
to make them function properly.
For example the input data used into a validation script
and, of course the experiment software distribution.
Special care should be used in the name of the tarball.
We adopted the following convention:
nameOfTarball= experimentNameSWnameVersionRelease.tar.gz
We distinguish between the single tarball and the multiple tarball case.
The former requires exactly the above convention.
Nevertheless, if you have more than one tarball, the name convention is
different:
nameOfTarball=experimentNameSWnameVersionRelease_index.tar.gz
where _index is a counter running from 1 to totalNumberOfTarball.
- Once you have made your tarball, you have to use the copyAndRegister edgrm
command to upload the tarball into an SE . In this step you have to
set a logical file name with l option.
The logical file name, for every tarball is the physical name of the file.
Example:
- Build your JDL file. Here an example of working jdl
Executable = "lcgSwExp.sh";
InputSandbox = {"lcgSwExp.sh", "lcgCheck.sh", "compare.pl", "parse.pl",
"lcgCopy.sh", "lcgTar.sh"};
OutputSandbox ={"stdout", "stderror", "ntuple.hbook"};
stdoutput = "stdout";
stderror = "stderror";
Arguments = "v E dteam V 6.5.0 H adc0033.cern.ch S athena R 2 N 1";
InputData ={"lfn:dteamathena6.5.01_1.tar.gz", "lfn:dteamathena6.5.01_2.tar.gz"};
DataAccessProtocol = {"gridftp", "gridftp"};
The Arguments field must presents 7 entries corresponding to the 7 calling
options:
- the action you want permorm (ivruh see the help with h option)
- The VO you belong to (E option)
- The software version you want to install (V option)
- The SE where you want to put the tarball(s) (H option)
- The SW name (S option)
- The number of tarballs your installation need (1 is the default) (N option)
- The number of release (1 is the default) (R option)
All these parameters will be used in the steering script (wrote in bash)
thereafter described ( lcgSwExp.sh ).
- Submit the script install.jdl with the command:
edgjobsubmit o myJob install.jdl
Next: What does the script
Up: Sample scripts for experiment
Previous: Sample scripts for experiment
Roberto SANTINELLI
2003-11-07