You can manually go through a shell via `cmd /C echo hello`, or better 
(slower to start but much more sane and useful) `powershell -Command "echo 
hello"`


On Tuesday, January 12, 2016 at 7:36:08 PM UTC-8, Jason Bates wrote:
>
> Hi All,
>
> I am having issues executing shell commands from within Julia (either in 
> the REPL or via the iJulia notebook) on Windows 10.  I can run actual 
> programs from within Julia, but all attempts at executing shell commands 
> produce an error.
>
> For instance, the example from the documentation:
>
> julia> run(`echo hello`)
>
> produces
>
> julia> run(`echo hello`)
> ERROR: could not spawn `echo hello`: no such file or directory (ENOENT)
>  in _jl_spawn at process.jl:262
>
> I get the same result using the semi-colon shortcut, both in the REPL and 
> within iJulia.
>
> However, I am able to call windows programs from within Julia 
> successfully.  For instance, 
>
> julia> run(`notepad`)
>
> successfully spawns a notepad window.
>
> Has anyone else run into this or similar issues on Win10?  Google searches 
> have turned up empty.  Further, the issue appears to be exclusive to Julia; 
> shell magic commands within iPython still execute correctly.
>
>
> Thanks,
>
> Jason Bates
>

Reply via email to