Skip to content

Commit

Permalink
allow overriding pwd for remote execution
Browse files Browse the repository at this point in the history
  • Loading branch information
aminnj committed Aug 8, 2021
1 parent 4f6eb53 commit eb84294
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DaemonMode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,11 @@ Ask the server to run julia code in a string pass as parameters.
- port: Port (default=3000).
- output: stream in which it is shown the output of the run.
"""
function runexpr(expr::AbstractString ; output = stdout, port = PORT)
function runexpr(expr::AbstractString ; output = stdout, cwd=pwd(), port = PORT)
try
sock = Sockets.connect(port)
println(sock, token_runexpr)
println(sock, pwd())
println(sock, cwd)
println(sock, expr)
println(sock, token_end)

Expand Down

0 comments on commit eb84294

Please sign in to comment.