So now I'm able to utilize the IPC::SysV perl module to read the shared memory and I'm seeking your wisdom.
How can I check to see if the contents in a shared memory has been updated or not...best close to as atomic as possible?
There are several processes writing data once a second to their specified shared memory...and I need to either log it or send it to a host (most likely) via sockets.
Of course, if a process has died & its shm is not cleaned, I should not send or log the same data over and over and over again. 2 scenarios I'm thinking of...If that process has failed before this script is ran, I can compare the previous output with the new one(which I'm not sure if this is the correct way), and the other is if the process has failed after the script( then the previous value would eq to the current value)
...any ideas?...
thanx a mil...
In reply to shmread help
by rhxk