2008/2/4, Idealone Ideally <shekarls / gmail.com>:
> Hi All,
>
> I am newbie to ruby,
> I have one doubt pertaining to system call and starting my server.
> I use the system call --> system("D:\ruby\bin\selenium.cmd")
> This starts a server followed by which i would be calling all the
> methods in my code.
> But until the first part of system call ends, i am not able to go to
> successive methods.
> I cant stop the server and then start calling other methods since all
> methods require server to be up & running.
> My question is , Can i start the server and keep it active plus it comes
> out of the system call and start executing other methods respectively.
>
> Let me know if you require any more information on this issue.

Ruby's threads are green threads and hence are blocked during blocking
system calls.

Try using 'cmd /c "start D:\\ruby\\bin\\selenium.cmd"'

Cheers

robert

-- 
use.inject do |as, often| as.you_can - without end