The Lookout

Ruby backtick capabilities

Posted on 2009-Apr-23 at 02:46

Ruby can run some programs as if on the command line, the mechanisms are pretty much the same as Perl would run them, backticks are a blessing in many respects.  It took some finding but the main three mechanisms are:

  • Kernel.system
  • Kernel.exec
  • %x[]

For more on these I went through the Ruby book but also this site to find out more on how these options operate.  This took me hours to find so I wanted a space to hold this info so I could find it again.

 


Last Page | Page 30 of 73 | Next Page