carta
pmsleep(1)

pmsleep1

Portable subsecond-capable sleep

Part of pmpause(1).

Overview

pmpause sleeps indefinitely, until interrupted by SIGKILL.

pmsleep sleeps for the specified interval. The interval argument follows the syntax described in PCPIntro(1) for -t, and in the simplest form may be an unsigned integer or floating point constant (the implied units in this case are seconds).

The -w option is provided to allow annotation of scripts with multiple uses of pmpause and/or pmsleep to identify a particular use in the process's arguments, e.g. as visible to ps(1).

Diagnostics

The exit status is 0 for success, or 1 for a malformed command line. If the underlying nanosleep(2) system call fails, an errno is returned.

History

  • Arch Linux 2026-11-01 to Debian 13 (Trixie): the text shown here
  • Debian 12 (Bookworm) to Debian 11 (Bullseye)
  • Debian 10 (Buster)
  • Debian 8 (Jessie)
  • Debian 6.0 (Squeeze)
  • Debian 5.0 (Lenny)

From pcp 7.2.2-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.