![]() |
Hello and Welcome from to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
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.
|
|
||||
|
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... |
|
||||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|