GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Programming

 Print  |  
Question:  what is the UNIX command to wait for a specified number of seconds before exit



November 11, 2007 15:02:56 #3
 teetoo   Member Since: November 2007    Total Comments: 1 

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
     

 

Back To Question