• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using wait & sleep

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried sleep & wait command as shown below.

In the script, there are two while loops. Each is having sleep command.
first loop is going in the sleep for 5 seconds and second loop is going in the loop for 2 seconds. I want when first loop goes in the sleep second loop should start it's execution & when second goes in the sleep first should start the execution.

But after execution it completes first_loop and then starts second_loop execution.


[ June 20, 2008: Message edited by: minal silimkar ]
reply
    Bookmark Topic Watch Topic
  • New Topic