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