what is the purpose of the sleep command?
Hi ,
It basically means Pause during Processing.
Is that what u wanted.
Bye.
why would you want to pause while processing?
The sleep command is used as a pause. For example if you want some commands say disk space monitoring command, to execute after every 10 seconds then you can use the sleep command to pause for 10 seconds before the next time your commands are executed.

hi unix-folks!
there are 2 kinds of "sleeps":
1) the command "sleep"
with the command "sleep" you can "pause" a script for a
number of seconds.
syntax: sleep <interval in seconds>
2) "sleep" means "pause" or "stop". you can send a
process to sleep with:
a) kill -24 <processnumber>
or
b) <Strg> + <z> on commandline, when a script/programm
is running from commandline.
to restart this stoped process you can type
for a\) kill -36 <processnumber>
or
for b\) fg
hint: you can see all kill-sigs on your system by typing "kill -l".
the two you need are "STOP" (kill -24) and "CONT (kill -26).
i hope this helps!
best regards,
alex...
I think that the purpose of sleep command is the pause between commands.
e.g: for display of the date to each 10 seconds.
#!/bin/csh
while(1)
date
sleep 10
end
in this in case that, as to know (in time of execucao) when to execute kill ?
I wait to have helped!
[]'s
Witt