Thanks for sharing. What is the advantage of this over a “here document”?
#!/usr/bin/env sh
#SBATCH -N 10
#SBATCH -n 8
#SBATCH -o %x-%j.out
module load julia/1.6.1 ## I have to load julia before calling julia
julia << EOF
using SomePackage
do_julia_stuff
EOF