Created
June 2, 2014 16:29
-
-
Save alco/60511a217f39168fa32d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(5)> Ports.open_port "cat", ["1"], "hello" | |
** (ArgumentError) argument error | |
:erlang.open_port({:spawn, "cat"}, [:stream, :binary, {:args, ["1"]}, :use_stdio, :stderr_to_stdout, :exit_status]) | |
(elixir) lib/port.ex:10: Port.open/2 | |
port.ex:3: Ports.open_port/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment