Today a simple script to remove shared memory in ksh :
#!/bin/ksh
#
# Shell Script to remove shared memory MVNO Instance
#
PID=$(ipcs -m | grep 0x000000a[0-9a-b] | awk '{print $2}'|xargs)
for one_pid in ${PID}; do
ipcrm -m ${one_pid}
echo 'Removed shm : ' ${one_pid}
done
This script remove all shared memory from address 0x000000a0 to 0x000000ab. You must modify this expression to remove another shared memory.
Stay tuned.
This blog was created to improve my English and share news, thoughts and opinions about the world around me. I use it also to fix some technical solutions for future use.
Iscriviti a:
Commenti sul post (Atom)
Goal 2026
Hi all Today, first day of 2026, new year new goals : 1. ENGLISH Improve listening comprehension See at least one or two films in English ...
-
Hi all Today a simple script. If you need execute a process (for example script1.sh) and wait his termination to start execution ano...
-
Hi all First day 2024 = Time of balance. Below my 2024 objectives : 1. ENGLISH Improve listening comprehension (So and So) See at least on...
-
Hi All I'm not an English mother tongue so I have to learn the most used worldwide language. My level is medium and I am searching co...
Nessun commento:
Posta un commento