|
|
|
|
|
Some customers have the same application for different OSs like Solaris, Linux, HPUX, etc and want to run these applications on any available host in their LSF cluster. If the user does not care what OS runs their code, you can configure a queue level JOB_STARTER script to ensure the correct path is always set.
Here's a sample JOB_STARTER shell script that runs on the execution server that you will need to customize for your environment:
/bin/sh
PLATFORM=`uname | tr A-Z a-z`
if [ "$PLATFORM" = "sunos" ]; then
PATH=/opt/SUNWspro/bin:$PATH ;
elif [ "$PLATFORM" = "linux" ]; then
PATH=/usr/bin:/usr/X11R6/bin:$PATH ;
fi
$*
In the above case, the PATH is changed for Solaris and Linux.
|