• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

intl/H12-Aug-2016-26,91619,643

m4/H12-Aug-2016-4,1003,862

man/H12-Aug-2016-1,7361,502

po/H03-May-2022-2,0241,761

src/H12-Aug-2016-2,1301,496

ABOUT-NLSH A D12-Aug-201691.6 KiB1,2831,244

AUTHORSH A D08-Mar-201236 21

COPYINGH A D16-Aug-201017.6 KiB342281

ChangeLogH A D12-Aug-201615.9 KiB521352

INSTALLH A D12-Aug-201615.4 KiB371289

Makefile.amH A D04-Nov-2012974 274

Makefile.inH A D12-Aug-201627.5 KiB871759

NEWSH A D12-Aug-20161.3 KiB4736

READMEH A D12-Aug-20163 KiB8764

aclocal.m4H A D12-Aug-201643 KiB1,2131,103

compileH A D12-Aug-20167.2 KiB348258

config.guessH A D12-Aug-201643 KiB1,4591,265

config.h.inH A D12-Aug-201618.3 KiB592437

config.rpathH A D12-Aug-201618.3 KiB691594

config.subH A D12-Aug-201635.5 KiB1,8321,694

configureH A D12-Aug-2016355.5 KiB12,31410,199

configure.acH A D12-Aug-20164.8 KiB11594

depcompH A D12-Aug-201623 KiB792502

install-shH A D12-Aug-201614.3 KiB502327

missingH A D12-Aug-20166.7 KiB216143

mkinstalldirsH A D07-Sep-20103.5 KiB163112

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