LSB_SUB_COMMANDNAME=y | Y
If set, enables esub to use the variable LSB_SUB_COMMAND_LINE in the esub job parameter file specified by the LSB_SUB_PARM_FILE environment variable.
The LSB_SUB_COMMAND_LINE variable carries the value of the bsub command argument, and is used when esub runs.
#!/bin/sh
. $LSB_SUB_PARM_FILE
exec 1>&2
if [ $LSB_SUB_COMMAND_LINE="netscape" ];
then
echo "netscape is not allowed to run in batch mode"
exit $LSB_SUB_ABORT_VALUE
fi
LSB_SUB_COMMAND_LINE=netscape
A job submitted with:
bsub netscape ...
Causes esub to echo the message:
netscape is not allowed to run in batch mode
Not defined
LSB_SUB_COMMAND_LINE and LSB_SUB_PARM_FILE environment variables