Hi,
I’m trying to run a script using System.cmd/3
but I’m getting an :enoent
error.
Here’s the error output:
[error] Task #PID<0.427.0> started from #PID<0.373.0> terminating
** (stop) :enoent
(elixir) lib/system.ex:632: System.cmd("echo", ["hello"], [])
(ex_test) lib/ex_test_web/commanders/page_commander.ex:19: anonymous fn/2 in ExTestWeb.PageCommander.run_async_tasks/2
(elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
(elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Function: #Function<2.128760482/0 in ExTestWeb.PageCommander.run_async_tasks/2>
Args: []
[error] Drab Process #PID<0.373.0> died because of :enoent
(elixir) lib/system.ex:632: System.cmd("echo", ["hello"], [])
(ex_test) lib/ex_test_web/commanders/page_commander.ex:19: anonymous fn/2 in ExTestWeb.PageCommander.run_async_tasks/2
(elixir) lib/task/supervised.ex:89: Task.Supervised.do_apply/2
(elixir) lib/task/supervised.ex:38: Task.Supervised.reply/5
(stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Any ideas whats wrong?