GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Programming
Go To First  |  Previous Question  |  Next Question 
 Unix Programming  |  Question 35 of 43    Print  
what is the UNIX command to wait for a specified number of seconds before exit

  
Total Answers and Comments: 6 Last Update: May 27, 2009     Asked by: arvind_kumarmca 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
November 12, 2007 18:29:24   #1  
Zahid K        

RE: what is the UNIX command to wait for a specified n...

You can use SIGNALs for this

 
Is this answer useful? Yes | No
November 13, 2007 08:12:08   #2  
Amit Verma        

RE: what is the UNIX command to wait for a specified n...
sleep command for the specified number of seconds/minutes/hours/days
 
Is this answer useful? Yes | No
November 30, 2007 15:02:56   #3  
teetoo Member Since: November 2007   Contribution: 2    

RE: what is the UNIX command to wait for a specified number of seconds before exit
usleep()

1000 1 sec

check sleep functions in <unistd.h>

for waiting processes use #kill -STOP "process number"
to continue ater stopping use #kill -CONT "process number"


get your processes number from (ps -A) command

 
Is this answer useful? Yes | No
December 12, 2007 09:32:09   #4  
josephko Member Since: December 2007   Contribution: 1    

RE: what is the UNIX command to wait for a specified number of seconds before exit
to sleep for 1 second give
sleep 1

sleep seconds

 
Is this answer useful? Yes | No
November 07, 2008 05:20:33   #5  
UncaAlby Member Since: October 2008   Contribution: 13    

RE: what is the UNIX command to wait for a specified number of seconds before exit
sleep specified number of seconds
exit

 
Is this answer useful? Yes | No
May 27, 2009 07:46:10   #6  
Rohit_Ash Member Since: May 2009   Contribution: 6    

RE: what is the UNIX command to wait for a specified number of seconds before exit
This is easiest way:

sleep seconds

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape