Project

General

Profile

JobLaunchScripts

Analysis

You would make a launch script like:

#! /bin/bash

export GROUP=nova
export EXPERIMENT=nova
export SAM_EXPERIMENT=nova
export nova_release="S15-01-21" 
export fcl=/nova/app/users/myusername/silly.fcl

source /grid/fermiapp/products/common/etc/setups.sh
source /grid/fermiapp/nova/novaart/novasvn/setup/setup_nova.sh

setup jobsub_client -z /grid/fermiapp/products/common/db

# arguments...
while :
do
  case "x$1" in
  x--dataset) dataset=$2; shift; shift; continue;;
  x--dest)    dest=$2; shift; shift; continue;;
  x--release) nova_release=$2; shift; shift; continue;;
  x--fcl)     fcl=$2; shift; shift; continue;;
  x*)         break;;
  esac
done

jobsub_submit \
    --jobsub-server https://fifebatch.fnal.gov:8443 \
    --group nova \
    --grid \
    -N 5 \
    --dataset_definition="$dataset" \
    file://$IFDH_ART_FQ_DIR/bin/art_sam_wrap.sh \
            --vers v1_7_0 \
            --quals e6:nu:s6:debug \
            --export EXTERNALS='$PRODUCTS' \
            --export CVMFS_DISTRO_BASE='$PRODUCTS/..' \
            --source '$CVMFS_DISTRO_BASE/novasvn/srt/srt.sh' \
            --source '$CVMFS_DISTRO_BASE/novasvn/setup/setup_novasoft.sh:-r:'"$nova_release" \
        --dest $dest \
        -X nova \
                --c $fcl \
              --sam-file-type=importedSimulated \
            --sam-application-family=nova \
            --sam-data-tier=userHistogram \
            --sam-application-version=$nova_release \