soravux / scoop

SCOOP (Scalable COncurrent Operations in Python)
https://github.com/soravux/scoop
GNU Lesser General Public License v3.0
625 stars 88 forks source link

scoop confused by bashrc echo #53

Closed maharjun closed 7 years ago

maharjun commented 7 years ago

I have noted the following problem.

I have code in my .bashrc that echo's a status message. When ssh-ing to this machine while dispatching jobs, SCOOP appears to be confused by this message and appears unable to launch jobs on this host effectively. (I get an error message specifically mentioning the bashrc status message. From what I could see, Only one job per node could be launched in such a case. Is there any way to fix this without having to disable the status message? (The message is rather useful when sshing to the machine in other contexts). Upon disabling the output, the error message disappears and the scheduling works fine.

maharjun commented 7 years ago

The only solution for this that I have found is to make the bashrc print the message only if the output is a terminal.

joernhees commented 7 years ago

hmm, i'd say "out of scope" from a scoop perspective... your .bashrc should check if it's in interactive mode or not (which most do by default): https://unix.stackexchange.com/questions/257571/why-does-bashrc-check-whether-the-current-shell-is-interactive

soravux commented 7 years ago

I agree with @joernhees. However, if you ever find a solution that solves the issue without drawback, pull requests are always welcome.