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

# shmwrite(1)

writes to a shared memory segment

## NAME

shmwrite - writes to a shared memory segment

## SYNOPSIS

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

## DESCRIPTION

**shmread** exercises the *shmat (2)* and *shmdt (2)* system calls to attach to a memory segment and write information to 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 writing. *-l* Length.  The number of bytes to allocate for the segment.

## SEE ALSO

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