Created
June 18, 2015 07:32
-
-
Save thbar/24e26b40007a3be05936 to your computer and use it in GitHub Desktop.
Running a command and capturing output with Elixir
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
# not sure how yet to capture the output and stream it back | |
IO.puts "Calling..." | |
{ output, exit_code } = System.cmd("bundle", ["outdated"]) | |
IO.puts "Exit code is #{exit_code}" | |
IO.puts "Output is #{output}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment