I use a Wine application (Google SketchUp) that has Ruby as scripting language. I want to issue commands to the Windows cmd from within SketchUp/Ruby. When I write on the Ruby console in SketchUp: puts `dir` or puts `cd` it should return the result of that command, but it freezes SketchUp and the gnome-terminal gives this error after some seconds: err:ntdll:RtlpWaitForCriticalSection section 0x136d24 "?" wait timed out in thread 0009, blocked by 0000, retrying (60 sec) The command does work in wine cmd, and SketchUp has the correct path to find cmd.exe: ENV["ComSpec"] C:\windows\system32\cmd.exe What could I do to solve this?