In short, the question was:
        Is there a way to get the shared memory back in some controlled manner?
In short the answer is:
ipcs -m | awk '{ printf("ipcrm -m %d\n",$2);}'  | sh  > /dev/null 2>&1
Read the man pages for ipcs and ipcrm to actually understand what you are doing.
Those responses are coming in fast and furious!  It's kind of embarrasing when
you ask a question that everybody knows the answer to.  So far:
 Paul A Sand <pas_at_keokuk.unh.edu>
 "George W. Baltz" <gwb_at_umd5.umd.edu>
 Gyula Szokoly <szgyula_at_skysrv.Pha.Jhu.EDU>
 maillard_at_atyisa.enet.dec.com
Thanks, Boris
Received on Wed Mar 13 1996 - 19:56:09 NZDT