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
   *
Show source
Register or log in to add new notes.