Skip to content

Commit 97634cf

Browse files
committed
Added a new functionality for the parse string to be able to use the login features of the shell
1 parent 8a16ad2 commit 97634cf

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Modules/Cluster.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,12 @@ def parse_string(self, string):
12021202
# Open a pipe with the server
12031203
# Use single ' to avoid string parsing by the local terminal
12041204
cmd = "%s %s 'echo \"%s\"'" % (self.sshcmd, self.hostname, string)
1205+
1206+
if self.use_active_shell:
1207+
cmd = "{ssh} {host} -t '{shell} --login -c \"echo {string}\"'".format(ssh = self.sshcmd,
1208+
host = self.hostname,
1209+
string = string,
1210+
shell = self.terminal)
12051211
#print cmd
12061212

12071213
status, output = self.ExecuteCMD(cmd, return_output = True)

0 commit comments

Comments
 (0)