Can I create one instance of Julia and use it to run multiple Julia scripts from bash script?
#!/bin/bash
J=getjuliainstance()
J.run(temp.jl)
J.run(j1.jl)
J.run(j2.jl)
J.run(j3.jl)
J.exit()
I could run all of them from inside a master Julia script but that is not the intent.
This is to circumvent Julia's load time for the first script so that runtime of subsequent scripts can be timed consistently.
Any way to spawn a single process and reuse it to launch scripts? From shell script only please!
One of the solutions (allows for a tail -f):
julia <pipe 2>&1 | tee submission.log > /dev/null &