I am running a big job on a HPC. But the installed programs for the job are old versions and I have the new versions in my home directory. I can log in to any node, export the path to the new versions using export PATH=/home/bharat/scratch/bin/:$PATH. However I am not sure if I export the path in my login shell and submit a job using bsub, then will the newly exported path be used by all the nodes that are running the job.
I can copy these files in one of the default include directories but my sysadmin is not too eager to do it for me soon.
What is the best way now to export the path to all nodes? Can I write a shell script with the export command + the job command and pass this script to bsub?