Transfer node
muschellij2 opened this issue · comments
The line
bioc_team_ds/17_config_files.Rmd
Line 541 in 4dffac8
scp
on the transfer node. For example, I always load conda_R
on all compute, so I had that in there. Once I took out || [[ $HOSTNAME == transfer-* ]]
, scp
for transfer worked again.Well, for non-interactive ssh use (including scp) that shouldn't happen, indeed. So I guess it's good to disable most of the ~/.bashrc
code meant for interactive use, like that one, with something like this:
#exit for noninteractive shells
[[ ${-#*i} != ${-} ]] || return
In my config I put the above lines at the top, even before the # Source global definitions
block sourcing /etc/bashrc, but after I added a custom PATH and a few other env vars settings that could be convenient for running some of my scripts through non-interactive ssh (but no module loading in that top section!)