SHMM(8)

NAME
shmm - shared memory manager

SYNOPSIS
shmm [OPTION]...

DESCRIPTION
Help you to manage easily all your shared memories.

-h, --help
    display this help and exit

-v, --version
    display version information and exit

-s, --shm-access=TEXT use to give access info as key:permission:size
    (permission as 0xxx like 0666)

-r, --read
    use to read shared memory

-w, --write=TEXT
    use TEXT to write data in shared memory until size-1 except if -b is set. TEXT is an optional argument Create the shared memory if it not exists

-c, --command=CHAR
    use CHAR to 'l'ock or 'u'nlock your shared memory

-u, --update=TEXT
    use update to set new user id, group id, permission with TEXT as : uid:gid:perm (perm as 0xxx like 0666)

-o, --offset=NUM
    use NUM to start after 0 with read or write options

-b, --binary
    use to print hex and/or char (when printable) dump of the memory

-i, --id
    use to give existing id instead of key and size

-f, --file=TEXT
    use to read to or write raw memory from file depending on -r (data are appended to existing file) or -w

EXAMPLES
Here are some realistic examples of running GNU `shmm'. This is the output of the command `shmm -s 0x00000001:0660:5 -w"test"': (nothing if no error) Be aware that if shared memory doesn't exit, it'll try to create it with only '\0' inside before writing anything (not true in binary mode), take care also NOT to put a space between -w and the string you wan't to write. Take care also to always keep at least the reading permission to a user you can use if you want to keep control on your shared memory. Using permission like 0200 is an error except if you are root. It's an error because with only writing perm you can't do anything. To write something you must have the right to attach a shared memory and that means having read permission. Also, execution permission is not used with shared memory so it's useless to use 0777 for example. When you just want to read like in examples below, you can eventually use permission 0000 without any bad effect. However for the size, if you read in binary mode with -s instead of -i you must not set size to 0 as shmm use this value to stop to read like an end offset. You'll get a warning though. If you use -f shmm will read in a file until size specified in -s is reached (if you use -i instead of -s all data in shared memory will be dump). This is the output of the command `shmm -rs 0x00000001:0660:5': test This is the output of the command `shmm -brs 0x00000001:0660:5': t e s t 0x00

REPORTING BUGS
Report bugs to Jeannie BOFFEL <jboffel@gmail.com>.

COPYRIGHT
Copyright © 2008 Jeannie BOFFEL. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO
The full documentation for shmm is maintained as a Texinfo manual. If the info and shmm programs are properly installed at your site, the command

    info shmm

should give you access to the complete manual.