aboutsummaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-11-30 14:48:22 +0100
committerMattias Andrée <maandree@operamail.com>2015-11-30 14:48:22 +0100
commitea4141919928561689a01a5fe7b3ac73f0fda0d5 (patch)
tree59b0bb27f6002f63208607a50980552e4963b103 /README
parentm (diff)
downloadcmdipc-ea4141919928561689a01a5fe7b3ac73f0fda0d5.tar.gz
cmdipc-ea4141919928561689a01a5fe7b3ac73f0fda0d5.tar.bz2
cmdipc-ea4141919928561689a01a5fe7b3ac73f0fda0d5.tar.xz
improve readme
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--README69
1 files changed, 64 insertions, 5 deletions
diff --git a/README b/README
index 6d10e91..613a7ee 100644
--- a/README
+++ b/README
@@ -1,5 +1,64 @@
-System V and POSIX interprocess communication
-from the command line. In addition to the primities
-shared memory, message queue and semaphores, this
-tool can from these primitives construct mutexe,
-conditions, barriers, shared locks and rendezvous.
+NAME
+ cmdipc - System V and POSIX IPC from the command line
+
+SYNOPSIS
+ cmdipc -Q [OPTION]... [receive]
+ cmdipc -Q [OPTION]... send [--] MESSAGE
+ cmdipc -S [OPTION]... [p|v|z|read]
+ cmdipc -S [OPTION]... set VALUE
+ cmdipc -M [OPTION]... [read]
+ cmdipc -M [OPTION]... write [--] DATA
+ cmdipc -X [OPTION]... [enter|leave]
+ cmdipc -C [OPTION]... [enter|leave|wait]
+ cmdipc -C [OPTION]... notify [all]
+ cmdipc -C [OPTION]... broadcast
+ cmdipc -B [OPTION]... THRESHOLD [enter]
+ cmdipc -B [OPTION]... --remove
+ cmdipc -L [OPTION]... [shared [un]lock]
+ cmdipc -L [OPTION]... exclusive [un]lock
+ cmdipc -R [OPTION]... [--] [MESSAGE]
+ cmdipc --ftok PATH ID
+
+DESCRIPTION
+ System V and POSIX interprocess communication from the command
+ line. In addition to the primities shared memory, message queue
+ and semaphores, this tool can from these primitives construct
+ mutexes, conditions, barriers, shared locks and rendezvous.
+
+OPTIONS
+ -h, --help Prints this help message and exits
+ -k, --key KEY The key (SysV) or name (POSIX) of the item
+ -m, --mode OCTAL The mode for the item
+ -s, --size SIZE Maximum size for messages
+ -z, --spool SIZE Maximum number of messages
+ -t, --type TYPE Message type
+ -p, --priority PRIO Message priority
+ -d, --delta DELTA Semaphore value increment
+ -i, --initial VALUE Initial semaphore value
+ -b, --timeout SECS Semaphore V/Z timeout, in seconds
+ -l, --length LEN Shared memory read length
+ -o, --offset OFF Shared memory read/write offset
+ -r, --remove Remove unit
+ -n, --nonblocking Do not block, exit with 2 if busy
+ -c, --create Create item
+ -x, --exclusive Create exclusive item
+ -f, --ftok Create unit ID, possibly non-unique
+ -P, --posix Use POSIX IPC rather than System V IPC
+ -Q, --mqueue Use message queue
+ -S, --semaphore Use semaphore
+ -M, --shm Use shared memory
+ -X, --mutex Use mutex
+ -C, --condition Use condition
+ -B, --barrier Use barrier
+ -L, --shared-lock Use shared lock
+ -R, --rendezvous Use rendezvous
+
+RATIONALE
+ Interprocess communication in the command line enables much
+ more interesting use of shell scripts.
+
+SEE ALSO
+ bus(1), ipcs(1), ipcrm(1), ipcmk(1), flock(1), mkfifo(1), ipcmd
+
+ Full documentation available locally via: info '(cmdipc)'
+