---
name: "shmread"
section: "1"
platform: "linux"
package: "selinux"
version: "2002031409-4"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/shmread"
---

# shmread(1)

reads the state of a shared memory segment

## NAME

shmread - reads the state of a shared memory segment

## SYNOPSIS

**msgread** *-i id* *-o offset* *-l length*

## DESCRIPTION

**shmread** exercises the *shmat (2)* and *shmdt (2)* system calls to attach to a memory segment and read information out of it.

## OPTIONS

*-i* Shared Memory Segment ID.  The shared memory segment ID is required. *-o* Offset.  The offset (in bytes) within the segment to start reading. *-l* Length.  The number of bytes to read out of the segment.

## SEE ALSO

[**shmget**(1)](/shmget/1.md), [**shmsid**(1)](/shmsid/1.md), [**shmwrite**(1)](/shmwrite/1.md), [**shmperm**(1)](/shmperm/1.md), [**shmat**(2)](/shmat/2.md), [**shmdt**(2)](/shmdt/2.md).
