Skip to content

Instantly share code, notes, and snippets.

@W4RH4WK
Created August 1, 2019 18:42
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 W4RH4WK/f50453731816ab15559a9a4d0b2a0c25 to your computer and use it in GitHub Desktop.
Save W4RH4WK/f50453731816ab15559a9a4d0b2a0c25 to your computer and use it in GitHub Desktop.
def `(cmd) #`
stdout = Kernel.`(cmd) #`
raise "Command failed with status (#{$?.exitstatus}) '#{cmd}'" unless $?.success?
return stdout
end
puts `date`.split[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment