On 31 March 2011 16:49, Ethan Huo <firewall888 / hotmail.com> wrote:
> Jeremy Bopp wrote in post #990214:
>> Have you considered using Cygwin (http://cygwin.com) and the ruby
>> package it provides? That will give you an emulated fork. While Cygwin
>> is not a panacea for porting Unix applications to Windows, it may work
>> for you.
>>
>> -Jeremy
>
> Hi, Jeremy, i knew cywin works for it, but cygwin has a memory limit for
> our usage, that's why we won't use cygwin any more.
> what i need now it to move it into Mingw and get it work...
> thanks for your quick reply, i appreciate it:)

You can also use the system() function.

Thread.new { system "dd", "if=/dev/zero", "of=/dev/null" }
=> #<Thread:0x7f81cb7337b0 sleep>

system "killall", "-USR1", "dd"
317912807+0 records in
317912807+0 records out
162771357184 bytes (163 GB) copied, 139.204 s, 1.2 GB/s
=> true

HTH

Michal