method

system

v1_8_6_287 - Show latest stable - Class: Kernel
system(...)
public

Executes cmd in a subshell, returning true if the command was found and ran successfully, false otherwise. An error status is available in $?. The arguments are processed in the same way as for Kernel::exec.

   system("echo *")
   system("echo", "*")

produces:

   config.h main.rb
   *