Skip to content

Commit

Permalink
do not use backslash for portability (fixes #238)
Browse files Browse the repository at this point in the history
  • Loading branch information
mschubert committed Dec 16, 2023
1 parent da03092 commit dad2f5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions R/qsys_ssh.r
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ SSH = R6::R6Class("SSH",
stop("SSH QSys must connect via tcp:// not ", sQuote(addr))

super$initialize(addr=addr, master=master, template=template)
private$template = paste(trimws(readLines(textConnection(private$template))), collapse=" ")

# set forward and run ssh.r (send port, master)
opts = private$fill_options(ssh_log=ssh_log, ssh_host=ssh_host)
Expand Down
10 changes: 5 additions & 5 deletions inst/SSH.tmpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ssh -o "ExitOnForwardFailure yes" -f \
-R {{ remote_port }}:127.0.0.1:{{ local_port }} \
{{ ssh_host }} \
"R --no-save --no-restore -e \
'clustermq:::ssh_proxy({{ remote_port }})' \
ssh -o "ExitOnForwardFailure yes" -f
-R {{ remote_port }}:127.0.0.1:{{ local_port }}
{{ ssh_host }}
"R --no-save --no-restore -e
'clustermq:::ssh_proxy({{ remote_port }})'
> {{ ssh_log | /dev/null }} 2>&1"

0 comments on commit dad2f5d

Please sign in to comment.