From: Joel VanderWerf Date: 2007-09-25T04:38:09+09:00 Subject: Re: Calling Exec() in Windows versus UNIX Joel VanderWerf wrote: > Matthew Williams wrote: >> exec("charting/RequestByProject.jar",params[:name]') > > This works for me: > > irb(main):004:0> exec "C:/Program Files/JGSoft/EditPadLite/EditPad.exe" This works too: exec "C:/Program Files/JGSoft/EditPadLite/EditPad.exe", "C:/tmp/foo.txt" Note the difference between #exec and #system: system blocks and returns when the child is done, but exec causes the current process to be replaced with the child. -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407