User guide
C–Integration with a Batch Queuing System
Clean-up PSM Shared Memory Files
IB0054606-02 A C-3
#!/bin/sh
files=`/bin/ls /dev/shm/psm_shm.* 2> /dev/null`;
for file in $files;
do
/sbin/fuser $file > /dev/null 2>&1;
if [ $? -ne 0 ];
then
/bin/rm $file > /dev/null 2>&1;
fi;
done;
When the system is idle, the administrators can remove all of the shared memory
files, including stale files, by using the following command:
# rm -rf /dev/shm/psm_shm.*