PMSLEEP(1)

πŸ“¦
version 7.2.2 Β· 3 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’€ PMSLEEP(1) β€” General Commands Manual πŸ’€

okay bestie, gather round, because today we're talking about pmpause and <pmsleep>pmsleep</pmsleep> β€” your portable, subsecond-capable sleep girls. yes they're in the General Commands Manual, yes they're iconic, let's go 🫢


✨ NAME ✨

pmpause, pmsleep β€” the portable sleep situation that can do subsecond timing, no cap πŸ’…


🌸 SYNOPSIS 🌸

$PCP_BINADM_DIR/pmpause [-w where]
$PCP_BINADM_DIR/pmsleep [-w where] interval

that's it, that's the whole vibe. two little commands, one big mood ✨


πŸ¦‹ DESCRIPTION πŸ¦‹

pmpause sleeps indefinitely β€” like, forever forever β€” until it gets interrupted by SIGKILL. that's the whole personality. it just vibes there. 😴

pmsleep is the one with commitment: it sleeps for the specified interval. and that interval argument follows the exact same syntax that PCPIntro(1) describes for -t. in the simplest form? it can just be an unsigned integer or a floating point constant β€” and in that case the implied units are seconds. simple as πŸ“

the -w option is here to let you annotate your scripts β€” like, if you've got multiple uses of pmpause and/or pmsleep floating around, -w lets you tag a particular use so you can tell which one is which in the process's arguments. e.g. as visible to ps(1). it's giving name tag energy πŸŽ€


πŸ”₯ DIAGNOSTICS πŸ”₯

okay so here's the tea:

  • exit status is 0 for success πŸŽ‰
  • exit status is 1 for a malformed command line 😭 (we've all been there)
  • and if the underlying nanosleep(2) system call fails, an errno is returned πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

sleep(1), pause(2) and nanosleep(2) β€” go read those too, iykyk πŸ“šβœ¨


Performance Co-Pilot 🫢 PCP β€” that's the source and version, bestie, and yes this page is literally titled PMSLEEP(1). mwah, go take a nap. πŸ’–πŸŒ™

πŸ“¦ where this page comes from