Skip to content

Instantly share code, notes, and snippets.

Created September 10, 2009 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/184282 to your computer and use it in GitHub Desktop.
Save anonymous/184282 to your computer and use it in GitHub Desktop.
eval_cmd = <<EOF
#{$common_code}
#$stdout = Sandbox.new()
#{previous_commands}
$stdout = $original_stdout
#{line}
EOF
#puts eval_cmd
output = Sandbox.safe.eval(eval_cmd)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment