logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/

sleep.1 (1236B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd June 18, 2025
  5. .Dt SLEEP 1
  6. .Os
  7. .Sh NAME
  8. .Nm sleep
  9. .Nd delay for a specified amount of time
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Ar duration
  13. .Op Ar command Op Ar argument...
  14. .Sh DESCRIPTION
  15. The
  16. .Nm
  17. utility shall suspends execution for the total of each
  18. .Ar duration
  19. argument
  20. and optionally execute into
  21. .Ar command .
  22. .Sh OPERANDS
  23. .Ss Ar duration
  24. A string containing non-negative decimal numbers including floats,
  25. terminated by a suffix: s for seconds, m for minutes, h for hours, d for days.
  26. If the final number doesn't have a suffix it is assumed to be seconds.
  27. Longer durations are taken as out of scope.
  28. .Ss Ar command
  29. When present sleep executes into
  30. .Ar command
  31. once
  32. .Ar duration
  33. elapsed.
  34. .Sh EXIT STATUS
  35. .Ex -std
  36. .Sh SEE ALSO
  37. .Xr at 1 ,
  38. .Xr crontab 1 ,
  39. .Xr nanosleep 3
  40. .Sh STANDARDS
  41. .Nm
  42. should be compliant with the
  43. IEEE Std 1003.1-2024 (“POSIX.1”)
  44. specification.
  45. .Sh HISTORY
  46. The
  47. .Ar command
  48. operand is inspired by s6-portable-utils and
  49. useful for chainloading environments like
  50. .Xr execline 1 .
  51. .Sh AUTHORS
  52. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me