exec, system, and “

Haven’t used this since 2007 and completely forgot. Yes, I use this blog as a notebook.

exec(“ls”) => exits from irb or the program
system(“ls”) => returns true or false (crap out)
`ls` => returns the output of the command as a string -> Nice!

Comments

Comments are closed.

Clicky Web Analytics
Powered by Olark