Horje
linux sleep with exec /bin/sleep Code Example
sh wait 10 seconds
sleep .5 # Waits 0.5 second.
sleep 5  # Waits 5 seconds.
sleep 5s # Waits 5 seconds.
sleep 5m # Waits 5 minutes.
sleep 5h # Waits 5 hours.
sleep 5d # Waits 5 days.
linux sleep with exec /bin/sleep
int pid= fork();
if (pid==0) { // child
	execl("/bin/sleep", "sleep", argv[1], NULL); // argv[1] is the sleeptime
    perror("execl");
    return EXIT_FAILURE;
}
if (waitpid(pid,NULL,0)<0) {
	perror("waitpid");
    return EXIT_FAILURE;
}




C

Related
can't add http dependency: A dependency may only have one source. Code Example can't add http dependency: A dependency may only have one source. Code Example
ssl_get_servername return null Code Example ssl_get_servername return null Code Example
how to turn off bash Code Example how to turn off bash Code Example
oracle trunc Code Example oracle trunc Code Example
piramide Code Example piramide Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9