The UNIX and Linux Forums  
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sleep working meetbhattu UNIX for Advanced & Expert Users 2 10-29-2007 05:05 PM
Sleep Command Glove Shell Programming and Scripting 1 10-03-2007 06:02 AM
Sleep() not working enuenu High Level Programming 2 06-02-2007 02:01 AM
Sleep less than 1 second bjorno UNIX for Dummies Questions & Answers 9 08-25-2005 04:55 AM
Sleep under one second Scoogie Shell Programming and Scripting 5 08-14-2002 09:10 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 1.00 average. Display Modes
  #1 (permalink)  
Old 07-07-2001
Anna Anna is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 4
Red face sleep

what is the purpose of the sleep command?
  #2 (permalink)  
Old 07-08-2001
rooh rooh is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 62
Hi ,

It basically means Pause during Processing.

Is that what u wanted.

Bye.
  #3 (permalink)  
Old 07-08-2001
Anna Anna is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 4
why would you want to pause while processing?
  #4 (permalink)  
Old 07-08-2001
kapilv kapilv is offline
Registered User
  
 

Join Date: Nov 2000
Location: India
Posts: 83
hi

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.

  #5 (permalink)  
Old 07-09-2001
loitschix loitschix is offline
Registered User
  
 

Join Date: Jul 2001
Location: Frankfurt/Germany
Posts: 21
sleep....

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...
  #6 (permalink)  
Old 07-11-2001
witt
Guest
  
 

Posts: n/a
Bits: 0 [Banking]
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


Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:59 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0