You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SUMMARY
At the current release, jumpssh exclusively creates interactive login shells (see man bash INVOCATION section).
It would be ideal if there was an option to make non-interactivenon-login shells.
MOTIVATION
Our environment has an echo command in the .bashrc file. The output of that echo command is included in every string returned by run_cmd. We're going to work around this by capturing our desired output as a file and getting the file, but this isn't ideal.
ADDITIONAL INFORMATION
As a suggestion, I might implement this as arguments to run_cmd with the following signature:
interactive:bool=True specify that the command will be run in an interactive shell, defaults to True for backwards compatibility
login:bool=True specify that the command will be run in a login shell, default to True for backwards compatibility
Logic would need to be implemented and tested in session.py near line 282:
my_cmd=cmdifusername:
user=username# need to run full command with shell to support shell builtins commands (source, ...)my_cmd='sudo su - %s -c "%s"'% (user, cmd.replace('"', '\\"')) #this replacement causes the user's command to be executed in an interactive login shell
The text was updated successfully, but these errors were encountered:
SUMMARY
At the current release, jumpssh exclusively creates interactive login shells (see
man bash
INVOCATION section).It would be ideal if there was an option to make non-interactive non-login shells.
MOTIVATION
Our environment has an
echo
command in the.bashrc
file. The output of that echo command is included in every string returned byrun_cmd
. We're going to work around this by capturing our desired output as a file and getting the file, but this isn't ideal.ADDITIONAL INFORMATION
As a suggestion, I might implement this as arguments to
run_cmd
with the following signature:Logic would need to be implemented and tested in
session.py
near line 282:The text was updated successfully, but these errors were encountered: