From: Aredridel Date: 2005-04-09T09:07:26+09:00 Subject: Re: Interfacing with C executable On Apr 8, 2005 5:57 PM, Joe Van Dyk wrote: > Hi, > > I have a program in C that is a part of a very complex system. When > the C program is launched, it has access (through shared memory) to a > whole bunch of other information. To communicate via shared memory is > a very complicated process, so, it can only realistically be done in C > (or Ada). > Anyone got an idea of how I can improve this? You might try my ruby-packstruct (which lets you define binary-accurate structures in Ruby, similar to but independent of ruby/dl) library, and see if you can't do the shared memory interface yourself. I don't know of any interfaces (haven't looked really) to the shm functions themselves, but writing one if you're decent in C shouldn't be hard at all.