On 03/03/16 23:00, Jude DaShiell wrote:
> This would have been cleaner had bash been able to wait until a
> command it was given had finished execution before doing its next
> command:
Bash does that. However, you are passing wget the "--background" option,
which explicitly works around this behaviour.
> wget --background --continue --trust-server-names --max-redirect=10000
> --tries=0 --input-file="sonar.dat"
If you remove "--background" from that line, you will get the expected
behaviour.

On another note, you can pass the list of downloads without a temporary
file:

{
  echo http://example.com
  echo http://test.com
} | wget --input-file=-


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to