-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run remote commands with --login #28
Comments
The problem here is that the I have no way of supporting files and commands both with and without def login_shell(command):
return '/bin/sh -l -c %s' % tej.submission.shell_escape(command)
queue.submit(None, mydir, login_shell('which conda')) |
hmm, why do you need to support without |
It actually does need to be +x for your above command to work (it's gonna expand to |
I see, yes I'm currently doing it without |
The
--login
(-l
) option advisessh
to act like a login shell (which is not the case when normally invoked by ssh) and source/etc/profile
and one of~/.bash_profile
,~/.bash_login
, and~/.profile
. This makes commands run in user specified environments and also enables built-ins like themodule
command. The behavior can currently be achieved by passing"sh -l " + your_command
tosubmit
.The text was updated successfully, but these errors were encountered: