Sleep (Unix)

Sleep (Unix)

sleep is a Unix command line program that suspends program execution for a specified period of time.The sleep instruction suspends the calling process for at least the specified number of seconds (the default), minutes, hours or days.

Usage

sleep number [suffix] ... or: sleep option

Where number is a required floating point number, and suffix is an optional suffix to indicate the time period.

uffix

s (seconds) m (minutes) h (hours) d (days)

Options

--help display this help and exit --version output version information and exit

Examples

sleep 5 Causes the current terminal session to wait 5 seconds. The default unit is seconds.

sleep 5hCauses the current terminal session to wait 5 hours

sleep 3h ; mplayer foo.mp3

Wait 3 hours then play foo.mp3

Note that sleep 5h30m and sleep 5h 30m are illegal since sleep takes only one value and unit as argument. However, sleep 5.5h is allowed.

Possible uses for sleep include scheduling tasks and delaying execution to allow a process to start.

ee also

*Sleep (operating system)

External links

*man|1|sleep|Linux|delay for a specified amount of time


Wikimedia Foundation. 2010.

Игры ⚽ Нужно решить контрольную?

Look at other dictionaries:

  • Sleep (Unix) — sleep est une commande Unix qui est une enveloppe (wrapper en anglais) de l appel système sleep(sec) qui suspend l exécution du processus pendant un intervalle de temps passé en paramètre. Sommaire 1 Usage 1.1 Suffixe 1.2 Options …   Wikipédia en Français

  • sleep (Unix) — Pour les articles homonymes, voir sleep. sleep est une commande Unix qui est une enveloppe (wrapper en anglais) de l appel système sleep(sec) qui suspend l exécution du processus pendant un intervalle de temps passé en paramètre. Sommaire 1 Usage …   Wikipédia en Français

  • sleep — unix утилита, выполняющая задержку на указанное время (например, при исполнении shell сценария) Входит, например, в GNU Coreutils. Содержание 1 Использование 2 Параметры запуска 3 …   Википедия

  • Sleep (disambiguation) — Sleep is a form of rest.Sleep can also refer to:* The material found in the corner of one s eye upon waking, which is a normal buildup of tears, mucus, and dirt that appears at the edge of the eyelids after sleep, otherwise known as rheum and… …   Wikipedia

  • Sleep — unix утилита, выполняющая задержку на указанное время (например, при исполнении shell сценария) Входит, например, в GNU Coreutils. Содержание 1 Использование 2 Параметры запуска 3 …   Википедия

  • UNIX — UNIX, parfois écrit « Unix », avec des petites capitales, est un système d exploitation multitâche et multi utilisateur créé en 1969, conceptuellement ouvert et fondé sur une approche par laquelle il offre de nombreux petits outils… …   Wikipédia en Français

  • Unix — (marque déposée officiellement comme UNIX, parfois aussi écrit comme Unix avec les petites capitalisations) est le nom d un système d exploitation multitâche et multi utilisateur créé en 1969, conceptuellement ouvert et fondé sur une approche par …   Wikipédia en Français

  • Sleep (operating system) — A computer program (process or task) may sleep, which places it into an inactive state for a period of time. Eventually the expiration of an interval timer, or the receipt of a signal or interrupt causes the program to resume execution.A typical… …   Wikipedia

  • Sleep — Sur les autres projets Wikimedia : « Sleep », sur le Wiktionnaire (dictionnaire universel) Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom. Sleep est un terme anglo saxon signifiant… …   Wikipédia en Français

  • Unix (messages d'erreur) — ● div. ►GAG►UNIX Parfois, votre shell ne comprend pas tout à fait ce que vous voulez qu il fasse... (Extrait de © Phrack). * $ rm meese ethics rm: meese ethics nonexistent. * $ ar m God ar: God does not exist. * $ How would you rate Quayle s… …   Dictionnaire d'informatique francophone

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”