As a workaround, I usually wrap the script in a function, and execute it
using
julia -e 'include("myscript.jl"); myfunction("arg1", 2.0)'
If you have a lot of arguments, that can become quite a hassle to type - so
sometimes I wrap it in a bash script that just substitutes the arguments
for me. It becomes a little messy with all the escapes and interpolation,
but it's entirely possible:
#!/bin/bash
julia -e "include(\"myscript.jl\"); myfunction(\"$1\",
\"interpolated-$2-from-bash.txt\")"
and then call it like ./myscript.sh arg1 arg2
Of course, if I do this I usually also do some argument checking already in
bash, to avoid starting a Julia session and waiting for the included script
to compile before it fails...
// T
On Friday, June 6, 2014 6:43:46 AM UTC+2, Francilio Araújo wrote:
>
> Thank guys.
>