![](https://seccdn.libravatar.org/avatar/b12cfb65ca4faebc3e3aac17838e8f8d.jpg?s=120&d=mm&r=g)
Sunny, On Monday 16 May 2005 09:14, Sunny wrote:
Hi, not SuSE related, but ... :)
how can I make a bash script to wait 10 seconds? I read about wait command, but it looks like the only argument it takes is the job ID.
Brad already told you how to solve your immediate problem, but I wanted to add that "wait" is for synchronizing the shell (whether it's executing a script or operating interactively) with background jobs. By default, the wait command waits for all background jobs to complete. Also, the argument may be a job number or a process ID, but that process must be one spawned directly by the shell (as reported when the '&' operator is used to detach a job). Note, too, that by necessity "wait" is a shell built-in, so you can get terse help with "help wait" and full documentation via man.
Cheers Sunny
Randall Schulz