|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| intl/ | H | 12-Aug-2016 | - | 26,916 | 19,643 |
| m4/ | H | 12-Aug-2016 | - | 4,100 | 3,862 |
| man/ | H | 12-Aug-2016 | - | 1,736 | 1,502 |
| po/ | H | 03-May-2022 | - | 2,024 | 1,761 |
| src/ | H | 12-Aug-2016 | - | 2,130 | 1,496 |
| ABOUT-NLS | H A D | 12-Aug-2016 | 91.6 KiB | 1,283 | 1,244 |
| AUTHORS | H A D | 08-Mar-2012 | 36 | 2 | 1 |
| COPYING | H A D | 16-Aug-2010 | 17.6 KiB | 342 | 281 |
| ChangeLog | H A D | 12-Aug-2016 | 15.9 KiB | 521 | 352 |
| INSTALL | H A D | 12-Aug-2016 | 15.4 KiB | 371 | 289 |
| Makefile.am | H A D | 04-Nov-2012 | 974 | 27 | 4 |
| Makefile.in | H A D | 12-Aug-2016 | 27.5 KiB | 871 | 759 |
| NEWS | H A D | 12-Aug-2016 | 1.3 KiB | 47 | 36 |
| README | H A D | 12-Aug-2016 | 3 KiB | 87 | 64 |
| aclocal.m4 | H A D | 12-Aug-2016 | 43 KiB | 1,213 | 1,103 |
| compile | H A D | 12-Aug-2016 | 7.2 KiB | 348 | 258 |
| config.guess | H A D | 12-Aug-2016 | 43 KiB | 1,459 | 1,265 |
| config.h.in | H A D | 12-Aug-2016 | 18.3 KiB | 592 | 437 |
| config.rpath | H A D | 12-Aug-2016 | 18.3 KiB | 691 | 594 |
| config.sub | H A D | 12-Aug-2016 | 35.5 KiB | 1,832 | 1,694 |
| configure | H A D | 12-Aug-2016 | 355.5 KiB | 12,314 | 10,199 |
| configure.ac | H A D | 12-Aug-2016 | 4.8 KiB | 115 | 94 |
| depcomp | H A D | 12-Aug-2016 | 23 KiB | 792 | 502 |
| install-sh | H A D | 12-Aug-2016 | 14.3 KiB | 502 | 327 |
| missing | H A D | 12-Aug-2016 | 6.7 KiB | 216 | 143 |
| mkinstalldirs | H A D | 07-Sep-2010 | 3.5 KiB | 163 | 112 |
README
1shmcat - a tool to dump shared memory segments, files and text
2(C) 2012, 2014, 2016 by Stefan Gast
3
4This is free software. You may redistribute copies of it under the terms of
5the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
6There is NO WARRANTY, to the extent permitted by law.
7
8License: GPLv2 or later
9
10Report bugs to: sgdev at arcor dot de
11
12===============================================================================
13
14Description:
15
16shmcat is a tool to dump shared memory segments (System V and/or POSIX), files,
17standard input and/or text passed via the command line to standard output.
18The program can dump several objects in sequence, similar to the cat (1)
19command.
20The package comes with an optional utility called ftok that acts as a wrapper
21to the library function of the same name.
22
23===============================================================================
24
25Compile and install in the usual GNU way:
26 cd SUBDIR
27 ./configure
28 make
29 su -c 'make install'
30
31The configure script supports several options (use ./configure --help for a
32complete list), for example:
33
34 --disable-nls Disable translations. This includes program messages
35 and man pages. Currently only German translations are
36 available, so you probably want to use this option if
37 you are not a German speaker.
38
39 --disable-ftok Do not build the ftok utility.
40
41 --disable-posix-shm
42 Disable POSIX shared memory support (shm_open
43 and friends). Support for the (older) System V
44 shared memory API (shmget, shmat...) will still
45 be included.
46
47If are going to install shmcat on FreeBSD, you probably want to configure with:
48 --manpath=/usr/local/man
49Otherwise the man pages will be installed (by default) to /usr/local/share/man,
50which is not in the default manpath of FreeBSD.
51
52===============================================================================
53
54Examples:
55
56To dump a System V shared memory segment, given by key:
57 shmcat -M KEY > FILENAME
58 (where KEY is some shared memory key obtained via ipcs (1) or ftok (1),
59 and FILENAME is the file to write the content to)
60
61To dump a System V shared memory segment, given by id:
62 shmcat -m ID > FILENAME
63 (where ID is some shared memory ID obtained via ipcs (1), and FILENAME
64 is the name of the file to write the content to)
65
66To dump a POSIX shared memory segment:
67 shmcat -p /SHMNAME > FILENAME
68 (where /SHMNAME is the name of the desired POSIX shared memory segment,
69 and FILENAME is the file to write the content to)
70
71You can dump several segments and files together with one call, e.g.:
72 shmcat -m ID -f SOME_FILE > FILENAME
73
74Of course, you can also use command substitution and the ftok tool for the
75key, e.g.:
76 shmcat -M `ftok SOME_FILE 65` > FILENAME
77
78For more information, please see the man pages for shmcat (1) and ftok (1),
79or type:
80 shmcat -h
81 ftok -h
82
83As seen above, if you dump shared memory segments, you should redirect the
84output of shmcat to a file or a program like od (1), because shared memory
85data usually has a binary form and thus it may contain non-printable
86characters.
87