Run shell commands in Elixir

后端 未结 6 752
醉酒成梦
醉酒成梦 2020-12-14 05:23

I want to execute a program through my Elixir code. What is the method to call a shell command to a given string? Is there anything which isn\'t platform specific?

6条回答
  •  别那么骄傲
    2020-12-14 06:12

    You can have a look in the Erlang os Module. E.g. cmd(Command) -> string() should be what you are looking for.

提交回复
热议问题