Skip to content

Instantly share code, notes, and snippets.

View wesley974's full-sized avatar
Learning React.js

Wesley wesley974

Learning React.js
View GitHub Profile
wesley974 / demo.rb
Last active February 15, 2019 08:09
Need to print stdout and raise(stderr) on error
#!/usr/bin/env ruby
require 'open3'
# I need to print stdout message and raise(stderr) on error
# System used: OpenBSD
# Commands used pkg_delete ; pkg_add
# Output is interactive, so it writes directly to tty, no stdout