IBM Spectrum Computing Group

 View Only
  • 1.  setting up project esub

    Posted 27 days ago
    Hi All,
    I am trying to setup projects for accounting. I had a esub script given to me, I put this in the esub folder and started an interactive job.
    the job ran and ignored the esub. I called the esub script  esub.projects

    When a run an interactive job and do a ENV I do not see  LSB_SUB_PROJECT_NAME but LSB_PROJECT_NAME

    #!/usr/bin/sh

     . $LSB_SUB_PARM_FILE

     # Redirect stderr to stdout so echo can be used for error messages

    exec 1>&2

     project_name=${LSB_SUB_PROJECT_NAME}

    runtime_project=`bacct -P $project_name -u all | grep "Total Run time" | awk '{print $5}'`

     

    if [ $runtime_project > a_value ];then

    exit

    fi



    ------------------------------
    Simon Scott
    ------------------------------

    #SpectrumComputingGroup


  • 2.  RE: setting up project esub

    Posted 27 days ago
    What you set in esub through LSB_SUB_PRJECT_NAME is for job submission option bsub -P. To get its value in job running env, LSF uses LSB_PROJECT_NAME instead. Is there any concern you don't want to use LSB_PROJECT_NAME?

    ------------------------------
    YI SUN
    ------------------------------