sock = connect("localhost", 5000)
function readcb(s::Base.AsyncStream, nreadable::Int)
input = takebuf_string(s.buffer)
ast = parse(input)
put(Base.repl_channel, (ast,1))
println(input)
return false
end
start_reading(sock, readcb)
This works when I paste it in the interactive shell, but running ./julia myscript.jl causes it to terminate. How do I persist the script?