doc/documentation/manual-pages/ru/man1/sleep.1
Sergio Carlavilla Delgado 989d921f5d Migrate doc to Hugo/AsciiDoctor
I'm very pleased to announce the release of
our new website and documentation using
the new toolchain with Hugo and AsciiDoctor.

To get more information about the new toolchain
please read the FreeBSD Documentation Project Primer[1],
Hugo docs[2] and AsciiDoctor docs[3].

Acknowledgment:
Benedict Reuschling <bcr@>
Glen Barber <gjb@>
Hiroki Sato <hrs@>
Li-Wen Hsu <lwhsu@>
Sean Chittenden <seanc@>
The FreeBSD Foundation

[1] https://docs.FreeBSD.org/en/books/fdp-primer/
[2] https://gohugo.io/documentation/
[3] https://docs.asciidoctor.org/home/

Approved by:    doceng, core
2021-01-26 00:31:29 +01:00

125 lines
3.9 KiB
Groff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.\"-
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)sleep.1 8.3 (Berkeley) 4/18/94
.\" %FreeBSD: src/bin/sleep/sleep.1,v 1.22 2005/01/16 16:41:59 ru Exp %
.\" $FreeBSDru: frdp/doc/ru_RU.KOI8-R/man/man1/sleep.1,v 1.3 2007/11/13 11:08:03 ru Exp $
.\" $FreeBSD$
.\"
.Dd 18 ÁÐÒÅÌÑ 1994
.Dt SLEEP 1
.Os
.Sh îáú÷áîéå
.Nm sleep
.Nd ÐÒÉÏÓÔÁÎÏ×ÉÔØ ×ÙÐÏÌÎÅÎÉÅ ÎÁ ÕËÁÚÁÎÎÙÊ ÉÎÔÅÒ×ÁÌ ×ÒÅÍÅÎÉ
.Sh óéîôáëóéó
.Nm
.Ar seconds
.Sh ïðéóáîéå
ëÏÍÁÎÄÁ
.Nm
ÐÒÉÏÓÔÁÎÁ×ÌÉ×ÁÅÔ ×ÙÐÏÌÎÅÎÉÅ ÐÏ ËÒÁÊÎÅÊ ÍÅÒÅ ÎÁ
.Ar seconds
ÓÅËÕÎÄ.
.Pp
åÓÌÉ ËÏÍÁÎÄÁ
.Nm
ÐÏÌÕÞÁÅÔ ÓÉÇÎÁÌ, ÏÎÁ ×ÙÐÏÌÎÑÅÔ ÓÔÁÎÄÁÒÔÎÏÅ ÄÅÊÓÔ×ÉÅ.
.Sh ïóïâåîîïóôé òåáìéúáãéé
÷ ÄÁÎÎÏÊ ÒÅÁÌÉÚÁÃÉÉ ÓÉÇÎÁÌ
.Dv SIGALRM
ÎÉËÁËÉÍ ÓÐÅÃÉÁÌØÎÙÍ ÏÂÒÁÚÏÍ ÎÅ ÏÂÒÁÂÁÔÙ×ÁÅÔÓÑ.
.Pp
ëÏÍÁÎÄÁ
.Nm
ÄÏÐÕÓËÁÅÔ ÕËÁÚÁÎÉÅ ÄÒÏÂÎÏÇÏ ÞÉÓÌÁ ÓÅËÕÎÄ
(Ó ÓÉÍ×ÏÌÏÍ
.Ql .\&
× ËÁÞÅÓÔ×Å ÄÅÓÑÔÉÞÎÏÊ ÔÏÞËÉ).
.Bf Sy
üÔÏ ÎÅÓÔÁÎÄÁÒÔÎÏÅ ÒÁÓÛÉÒÅÎÉÅ ÆÕÎËÃÉÏÎÁÌØÎÏÓÔÉ, É ÅÇÏ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ÍÏÖÅÔ
ÐÒÉ×ÅÓÔÉ Ë ÔÏÍÕ, ÞÔÏ ËÏÍÁÎÄÎÙÊ ÓÃÅÎÁÒÉÊ ÂÕÄÅÔ ×ÙÐÏÌÎÑÔØÓÑ ÎÅËÏÒÒÅËÔÎÏ ÎÁ
ÄÒÕÇÏÊ ÓÉÓÔÅÍÅ.
.Ef
.Sh óôáôõó úá÷åòûåîéñ
.Ex -std
.Sh ðòéíåòù
þÔÏÂÙ ÚÁÐÌÁÎÉÒÏ×ÁÔØ ×ÙÐÏÌÎÅÎÉÅ ËÏÍÁÎÄÙ ÞÅÒÅÚ
.Va x
ÓÅËÕÎÄ (ÉÚ
.Xr csh 1 ) :
.Pp
.Dl (sleep 1800; sh command_file >& errors)&
.Pp
üÔÏ "ÚÁËÌÉÎÁÎÉÅ" ÐÏÄÏÖÄÁÌÏ ÂÙ ÐÏÌÞÁÓÁ ÐÅÒÅÄ ÔÅÍ,
ËÁË ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÎÙÊ ÓÃÅÎÁÒÉÊ command_file.
(ðÏÓÍÏÔÒÉÔÅ ÎÁ ÕÔÉÌÉÔÕ
.Xr at 1 . )
.Pp
þÔÏÂÙ ×ÙÐÏÌÎÉÔØ ËÏÍÁÎÄÕ Ó ÐÏ×ÔÏÒÏÍ (ÉÚ
.Xr csh 1 ) :
.Pp
.Bd -literal -offset indent -compact
while (1)
if (! -r zzz.rawdata) then
sleep 300
else
foreach i (`ls *.rawdata`)
sleep 70
awk -f collapse_data $i >> results
end
break
endif
end
.Ed
.Pp
óÃÅÎÁÒÉÊ, ÐÏÄÏÂÎÙÊ ÜÔÏÍÕ, ÍÏÖÅÔ ÂÙÔØ ÉÓÐÏÌØÚÏ×ÁÎ × ÓÌÅÄÕÀÝÅÍ ÓÌÕÞÁÅ:
ÐÒÏÇÒÁÍÍÁ, ËÏÔÏÒÁÑ ×ÙÐÏÌÎÑÅÔÓÑ × ÎÁÓÔÏÑÝÉÊ ÍÏÍÅÎÔ É ÏÂÒÁÂÁÔÙ×ÁÅÔ
ÒÑÄ ÆÁÊÌÏ×, ÔÒÁÔÉÔ ×ÒÅÍÅÎÉ ÂÏÌØÛÅ, ÞÅÍ ÏÖÉÄÁÌÏÓØ, É ÂÙÌÏ ÂÙ ÎÅÐÌÏÈÏ,
ÅÓÌÉ ÂÙ ÄÒÕÇÁÑ ÐÒÏÇÒÁÍÍÁ ÎÁÞÁÌÁ ÏÂÒÁÂÏÔËÕ ÆÁÊÌÏ×, ÓÏÚÄÁÎÎÙÈ ÐÅÒ×ÏÊ
ÐÒÏÇÒÁÍÍÏÊ, ËÁË ÔÏÌØËÏ ÔÁ ÚÁËÏÎÞÉÔ Ó×ÏÀ ÒÁÂÏÔÕ (ËÏÇÄÁ ÂÕÄÅÔ ÓÏÚÄÁÎ
ÆÁÊÌ zzz.rawdata).
óÃÅÎÁÒÉÊ ÐÒÏ×ÅÒÑÅÔ ÎÁÌÉÞÉÅ ÆÁÊÌÁ zzz.rawdata ËÁÖÄÙÅ ÐÑÔØ ÍÉÎÕÔ
É ËÏÇÄÁ ÏÂÎÁÒÕÖÉ×ÁÅÔ ÅÇÏ, ÏÔÐÒÁ×ÌÑÅÔ ÏÞÅÒÅÄÎÕÀ ÐÏÒÃÉÀ ÎÁ ÏÂÒÁÂÏÔËÕ,
ÄÅÌÁÑ ÜÔÏ ×ÅÖÌÉ×Ï, ÚÁÓÙÐÁÑ ÎÁ 70 ÓÅËÕÎÄ ÐÅÒÅÄ ËÁÖÄÙÍ ÚÁÄÁÎÉÅÍ awk.
.Sh óíïôòé ôáëöå
.Xr nanosleep 2 ,
.Xr sleep 3
.Sh óôáîäáòôù
ðÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ËÏÍÁÎÄÁ
.Nm
ÓÏ×ÍÅÓÔÉÍÁ ÓÏ ÓÔÁÎÄÁÒÔÏÍ
.St -p1003.2 .
.Sh éóôïòéñ
ëÏÍÁÎÄÁ
.Nm
ÐÏÑ×ÉÌÁÓØ ×
.At v4 .