ruby run bash command
# Backticks syntax `echo 'hi'` # %x() syntax %x( echo 'hi' ) # Kernel#system # Executes the given command in a subshell. system( "echo 'hi'" ) # Kernel#exec # Replaces the current process by running the given external command. exec( "echo 'hi'" )
Source: stackoverflow.com