Run code non-interactively from script with -e option

julia -e "println(\"hello world\")"

works for me.

1 Like