Skip to content

Instantly share code, notes, and snippets.

@kevbuchanan
Created December 12, 2014 16:16
Show Gist options
  • Save kevbuchanan/270d291a46ad76b6a8ed to your computer and use it in GitHub Desktop.
Save kevbuchanan/270d291a46ad76b6a8ed to your computer and use it in GitHub Desktop.
Redirecting stderr
./test.rb 2>errors.log
#!/usr/bin/env ruby
$stderr.puts("Hello from stderr")
$stdout.puts("Hello from stdout")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment