I have the simple set of commands that I follow on HPC cluster for launching specific Interactive job and then Launch Jupyter notebook over it as follows. I tried to create script for the same set of commands. But after the first bsub command (which drop me into a new shell), remaining commands are not executed.

My script :

bsub -n 10 -W 4:00 -Is bash
&& 
conda activate env 
&& 
cd /lustre/scratch/user/ 
&& 
jupyter notebook --no-browser --ip=127.0.0.1 --port=8850

after bsub -n 10 -W 4:00 -Is bash following set of commands are not executed. This command creates a new shell according to admin. Is there a work around for this ? One solution is that I can create a separate script for remaining 3 commands but It would be great to have them combined.

0

There are 0 best solutions below