Skip to content

Instantly share code, notes, and snippets.

@jmatt
Created April 17, 2012 02:50
Show Gist options
  • Select an option

  • Save jmatt/2403063 to your computer and use it in GitHub Desktop.

Select an option

Save jmatt/2403063 to your computer and use it in GitHub Desktop.
Hmmm no idea why this works and other combinations of popen don't.
#!/usr/bin/ruby
require 'net/http'
require 'net/https'
require 'openssl'
require 'rubygems'
require 'json'
require 'cgi'
require 'yaml'
require 'digest/sha1'
require 'open-uri'
IO.popen("/root/shellinaboxd-install.sh") { |f| f.read }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment