I aim to run some Julia-coded simulations on a cluster (no complicated parallel processing involved) using a .pbs file (and
I know two ways to run a .jl file from the Bash. The first one is
The second one is
exec '/Applications/bla/bla/julia/bin/julia' include("myscript.jl")
Here is my .pbs file. I cannot test if it works because I don't know yet where the Julia application is stored on the cluster.
#!/bin/bash #PBS -l procs=1 #PBS -l walltime=240:00:00 #PBS -N Name #PBS -m ea #PBS -M [email protected] #PBS -l pmem=1000mb #PBS -t 1-3 echo "Starting run at: `date`" exec '/Applications/bla/bla/julia/bin/julia' include("myscript.jl") echo "Job finished with exit code $? at: `date`"
Does it seem correct to you? Or should I, somehow, make an .exec out of my .jl?