I’d like to create a shared memory segment from a Unix startup script.
The created segment would be accessed by several php scripts.
Is there a shell command to create a shared mem segment specifying key, mode, permissions and size?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use ipcrm to delete a shared memory segment, and ipcs to list shared memory segments … but AFAIK you need to use a C program (or equivalent) to create a shared memory segment. There’s no command I’m aware of to create one directly from the shell.