From: Kirk Haines Date: 2010-06-16T04:53:13+09:00 Subject: Re: Execute ruby file from a ruby file On Tue, Jun 15, 2010 at 1:35 PM, Greg Ma wrote: > Hi, > I can't find out how can I execute my ruby script from another ruby > file. > > This is how I would do it in command line > ruby jobs/eventParser.rb "5454353" ri Kernel#system ---------------------------------------------------------- Kernel#system system(cmd [, arg, ...]) => true or false ------------------------------------------------------------------------ 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 * Kirk Haines