From: Caleb Tennis Date: 2005-04-05T21:09:06+09:00 Subject: Re: shared memory example On Monday 04 April 2005 03:41 pm, Joe Van Dyk wrote: > key = SystemVIPC.ftok("/tmp/key_file", 1) > shmem = SharedMemory.new(key) > p shmem.size Don't forget to shmem.attach. You can use the (linux) command "ipcs" to take a look at existing shared memory segments, and make sure you are indeed attaching to what you think you are. You should also verify that the value of "key" matches up to the real key value of the segment (again, using ipcs). HTH, Caleb