Skip to content

Instantly share code, notes, and snippets.

/test.rb Secret

Created October 13, 2016 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/a6d95aeb0893da970d835bb75a3d3fbb to your computer and use it in GitHub Desktop.
Save anonymous/a6d95aeb0893da970d835bb75a3d3fbb to your computer and use it in GitHub Desktop.
def test
recipients = String.new
ARGV.each { |recipient| recipients.concat("#{recipient} ") }
#IO.popen("echo \"#{recipients}\" ", "w")
IO.popen(["echo", recipients], "w")
end
test
# $ ruby testARG.rb A B C "D E;hostname"
# A B C D E;hostname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment