Unix and Linux Discussions Tagged with execution |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
1 |
3,647 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,036 |
UNIX for Beginners Questions & Answers |
|
|
|
9 |
4,259 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
2,077 |
UNIX for Beginners Questions & Answers |
|
|
|
2 |
2,425 |
Shell Programming and Scripting |
|
|
|
11 |
12,603 |
Ubuntu |
|
|
|
1 |
2,774 |
Shell Programming and Scripting |
|
|
|
1 |
2,616 |
Shell Programming and Scripting |
|
|
|
3 |
14,387 |
Programming |
|
|
|
0 |
1,957 |
Complex Event Processing RSS News |
|
|
|
3 |
11,711 |
Programming |
|
|
|
4 |
5,674 |
Shell Programming and Scripting |
|
|
|
4 |
6,518 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
26,041 |
AIX |
|
|
|
7 |
9,001 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
1,717 |
Complex Event Processing RSS News |
|
|
|
0 |
3,700 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
11,163 |
Cybersecurity |
|
|
|
2 |
2,821 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,996 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
7,246 |
Programming |
|
|
|
2 |
4,491 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
7,096 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
13,057 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
15,883 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
14,009 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
11,221 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,863 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,638 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,863 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,692 |
UNIX for Dummies Questions & Answers |
sleep(1) User Commands sleep(1)
NAME
sleep - suspend execution for an interval
SYNOPSIS
sleep time
DESCRIPTION
The sleep utility will suspend execution for at least the integral number of seconds specified by the time operand.
OPERANDS
The following operands are supported:
time A non-negative decimal integer specifying the number of seconds for which to suspend execution.
EXAMPLES
Example 1: Suspending command execution for a time
To execute a command after a certain amount of time:
example% (sleep 105; command)&
Example 2: Executing a command every so often
example% while true
do
command
sleep 37
done
ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables that affect the execution of sleep: LANG, LC_ALL, LC_CTYPE, LC_MES-
SAGES, and NLSPATH.
EXIT STATUS
The following exit values are returned:
0 The execution was successfully suspended for at least time seconds, or a SIGALRM signal was received (see NOTES).
>0 An error has occurred.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
SEE ALSO
wait(1), alarm(2), sleep(3C), wait(3UCB), attributes(5), environ(5), standards(5)
NOTES
If the sleep utility receives a SIGALRM signal, one of the following actions will be taken:
o Terminate normally with a zero exit status.
o Effectively ignore the signal.
The sleep utility will take the standard action for all other signals.
SunOS 5.10 1 Feb 1995 sleep(1)