Hi, I have this code need to be translated to windows machine:

`kill #{`pgrep -f optimize_jobs.rb`.chomp}`
exec("ruby -C#{RAILS_ROOT}/public/files optimize_jobs.rb &") if fork
== nil

The second line has been translated successfully as:
require "win32/process"
exec("ruby -C#{RAILS_ROOT}/public/files optimize_jobs.rb &") if
Process.fork == nil

But what about first line? Anybody know how to translate that to
windows machine (Windows XP Home if that matters)?

Thank you.