Last active
July 20, 2021 23:33
-
-
Save ox1111/5b16e549ada602a36b3526c95ac8567f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# | |
# write by kyoung chip ,jang | |
# tag : HSJF-CDQF-QNQA-XRRC | |
# | |
# sudo apt-get install python3-dev | |
# | |
# wget http://semanchuk.com/philip/sysv_ipc/sysv_ipc-0.7.0.tar.gz | |
# tar xvf sysv_ipc-0.7.0.tar.gz | |
# cd sysv_ipc-0.7.0 | |
# sudo python3 setup.py install | |
# | |
# python3 shmreader.py | |
# | |
import sysv_ipc | |
class CShmReader : | |
def __init__( self ) : | |
pass | |
def doReadShm( self , key ) : | |
memory = sysv_ipc.SharedMemory( key ) | |
memory_value = memory.read() | |
print ( memory_value ) | |
if __name__ == '__main__': | |
s = CShmReader() | |
s.doReadShm( 777 ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment