On Wed, Jun 30, 2010 at 1:23 PM, Gourav Tiwari <gouravtiwari21 / gmail.com> wrote:
> Thanks for the reply Gordon
>
> I will give it a try, by the way, I am using ruby 1.8.6 and jruby 1.5.1
>

Running ruby scripts are a bit different.  You may want to try adding
'ruby '  to the begining

C:\Users\gthiesfeld\Work\repo>pik 1.8.6

C:\Users\gthiesfeld\Work\repo\pik>ruby -v
ruby 1.8.6 (2010-02-04 patchlevel 398) [i386-mingw32]

C:\Users\gthiesfeld\Work\repo>irb
irb(main):001:0> `test.rb`
Errno::ENOEXEC: Exec format error - test.rb
        from (irb):1:in ``'
        from (irb):1
irb(main):002:0> `ruby test.rb`
=> "Hello world!\n4\n"
irb(main):003:0> exit

C:\Users\gthiesfeld\Work\repo>pik jruby

C:\Users\gthiesfeld\Work\repo>ruby -v
'ruby' is not recognized as an internal or external command,
operable program or batch file.

C:\Users\gthiesfeld\Work\repo\pik>jruby -v
jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java
HotSpot(TM) Client VM 1.6.0_20) [x86-java]

C:\Users\gthiesfeld\Work\repo>jirb
irb(main):001:0> `ruby test.rb`
=> "Hello world!\n4\n"
irb(main):002:0> exit