wget --background because you want to wait for the end of this command and not put it in the background | shell - `wait` doesn't wait for `wget --background` - Unix & Linux Stack Exchange : http://unix.stackexchange.com/questions/122701/wait-doesnt-wait-for-wget-background |