Use script_exe with CRAB

A user can run a script on WN (instead of default cmsrun).


It is up to the user to setup properly the script itself to run on WN enviroment.

CRAB guarantees that:

  • the CMSSW environment is setup (e.g. scram is in the path);
  • the modified pset.cfg will be placed in the working directory, with name;
  • the script itself will be added automatically to the input sandbox (the user MUST NOT add it within the USER.additional_input_files).

The user must ensure that:

  • a job report named crab_fjr.xml will be written. If your script contains cmsRun, you can guaranteed it by passing the arguments ``-j crab_fjr.xml'' to cmsRun in the script.

CRAB setting

Fill the script_exe parameter under [USER] section of your crab.cfg with the script name. With script_arguments you can indicate the arguments passed at the script.
script_exe =
script_arguments = arg1,arg2,arg3,...
output_file = results.txt, results.tgz

An Example: ToyMC

-- MarcoCalloni - 2009-09-29

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r2 - 2009-09-30 - MarcoCalloni
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CMSPublic All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback