http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-7.html
e guardati anche
man sleep