![]() |
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 |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| wait for 5 seconds in shell script | gopsman | Shell Programming and Scripting | 2 | 08-30-2007 05:47 AM |
| make directory script | malaysoul | Shell Programming and Scripting | 0 | 02-11-2007 11:10 AM |
| Need to execute 2 scripts, wait, execute 2 more wait, till end of file | halo98 | Shell Programming and Scripting | 1 | 08-01-2006 04:42 PM |
| Help make script much easier | GCTEII | Shell Programming and Scripting | 2 | 03-18-2006 10:12 AM |
| make script | cherio | High Level Programming | 3 | 11-11-2002 10:06 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
What're you trying to do? If you explain more about "why", then someone may be able to give a better explanation; depending on your circumstances, you could use the "pause" or "wait" commands.
Or put in a "read ANS" which would cause the program to wait until the user hits ENTER before continuing on to the next line in the script... alternatively, see the following thread for a way to have the user be able to hit any key (not just ENTER) and have the script continue on to the next line after the "read" command. making a .sh wait for user input Last edited by oombera; 01-21-2004 at 05:03 PM.. |
|
|||||
|
The best example to give of wait() and notify() is the dining philosophers problem.
Look it up. It is in most operating system books or search google for specific programming language details. Otherwise, tell us your programming language and usage. I am sure we could give you an example. The only reason to use sleep() is if you wanted to delay something for some reason. For instance the frames in a moving picture. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|