![]() |
Hello and Welcome from United States 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 |
| publishing 192.168 address internally | vertical98 | IP Networking | 2 | 03-25-2008 01:23 AM |
| Script doesn't work, but commands inside work | cheongww | UNIX for Dummies Questions & Answers | 2 | 11-14-2006 10:52 PM |
| Sleep less than 1 second | bjorno | UNIX for Dummies Questions & Answers | 9 | 08-25-2005 03:55 AM |
| Sleep under one second | Scoogie | Shell Programming and Scripting | 5 | 08-14-2002 08:10 AM |
| sleep | Anna | UNIX for Dummies Questions & Answers | 5 | 07-10-2001 11:52 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
/bin/sleep (or /usr/bin/sleep) is a program that basically does
Code:
#include <stdlib.h>
#include <string.h>
int main(int argc,char **argv)
{
sleep(atol(argv[1]));
return 0;
}
(a) sets a wake-up timer (b) marks the current process as sleeping (c) waits until the wakeup-timer fires or an interrupt occurs |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|