Skip to content

Instantly share code, notes, and snippets.

@alco
Created June 2, 2014 16:29
Show Gist options
  • Save alco/60511a217f39168fa32d to your computer and use it in GitHub Desktop.
Save alco/60511a217f39168fa32d to your computer and use it in GitHub Desktop.
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