File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -63,5 +63,9 @@ if [[ ! -r "${SCREEN_RC}" ]]; then
63
63
fi
64
64
65
65
66
- srun --pty --nodes=1 /usr/bin/screen -c " ${SCREEN_RC} " -s /bin/bash -Dm -S " session$SLURM_JOB_ID "
66
+ if [[ -n " ${SHELL} " ]]; then
67
+ srun --pty --nodes=1 /usr/bin/screen -c " ${SCREEN_RC} " -s " ${SHELL} " -Dm -S " session$SLURM_JOB_ID "
68
+ else
69
+ srun --pty --nodes=1 /usr/bin/screen -c " ${SCREEN_RC} " -s /bin/bash -Dm -S " session$SLURM_JOB_ID "
70
+ fi
67
71
Original file line number Diff line number Diff line change 96
96
97
97
# Start up a shell session for the user
98
98
screen -S " $SCREENSESSION " -X setenv SPLASH_RCFILE /usr/libexec/microway/interactive_splash_rcfile
99
- screen -S " $SCREENSESSION " -X screen -t " bash" 1 bash -i -l
99
+ if [[ " ${SHELL} " == " /bin/csh" ]]; then
100
+ screen -S " $SCREENSESSION " -X screen -t " csh" 1 csh -l
101
+ else
102
+ screen -S " $SCREENSESSION " -X screen -t " bash" 1 bash -i -l
103
+ fi
100
104
101
105
# Remove the META tab, which has outlived its usefulness
102
106
screen -p0 -S " $SCREENSESSION " -X kill
You can’t perform that action at this time.
0 commit comments