I have a julia file, say
FileIwantToRun.jl in many folders/directories. I want to write a script that visits each of these directories and runs this file from those directories (it outputs a file that I want it to save in that folder). I tried the function shown below but get an error saying that:
ERROR: IOError: could not spawn julia16 FileIwantToRun.jl
: no such file or directory (ENOENT)
When I manually visit this folders and run
julia16 FileIwantToRun.jl it runs without any issues. Can you please point out what I am doing wrong? Thank you.
function runfile() for dest in destdirs println("Running file in $(dest)") cd(dest) do run(`julia16 $(FileIwantToRun.jl)`) end end end