From: thefed Date: 2008-01-09T06:52:23+09:00 Subject: Re: Ruby's Kernel::exec (and system and %x) On Jan 8, 2008, at 9:49 AM, JJ wrote: > The right answer (because it does not use the shell): > > exec("tolower", str) > So do you have a solution for executing a file with no args? Or is: exec([cmd, cmd]) the preferred one? BTW, I meant exec([cmd, ""]) instead of exec(cmd, "")