From: Robert Klemme Date: 2006-03-09T07:42:35+09:00 Subject: Re: Best way to start new ruby script? 2006/3/8, Marcus Andersson : > I have a long running process that I want to start from a Rails request. > But, because it takes so long to execute, I want to start it in a > separate process and then return. What is the best way to do that? You have several options - at leas these: - do it in a thread - create a new process using fork's block form, which executes the block in the child - create a completely new process via a standard fork call Which one is best depends on the problem you are trying to solve, # of CPU's available, personal taste etc. Kind regards robert -- Have a look: http://www.flickr.com/photos/fussel-foto/