Skip to content

Commit 5afc373

Browse files
committed
Fix the cluster within active shell
1 parent cbdf4ca commit 5afc373

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Modules/Cluster.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def __init__(self, hostname=None, pwd=None, extra_options="", workdir = "",
229229

230230
# Enforce ssh to open a shell for each command in the cluster
231231
self.use_active_shell = False
232+
# If the following is true, then use the active shell always
233+
self.use_active_shell_for_parsing = False
232234

233235
# This is the number of configurations to be computed for each jub submitted
234236
# This times the self.batch_size is the total amount of configurations submitted toghether
@@ -1441,7 +1443,7 @@ def parse_string(self, string):
14411443
# Use single ' to avoid string parsing by the local terminal
14421444
cmd = "%s %s 'echo \"%s\"'" % (self.sshcmd, self.hostname, string)
14431445

1444-
if self.use_active_shell:
1446+
if self.use_active_shell_for_parsing:
14451447
cmd = "{ssh} {host} -t '{shell} --login -c \"echo {string}\"'".format(ssh = self.sshcmd,
14461448
host = self.hostname,
14471449
string = parse_symbols(string),

0 commit comments

Comments
 (0)