I am trying to download a large file which is .tar.gz
and (> 2GB) in size. The bash script also does lots of other things, so I want to kick off the download and then continue processing other commands in the bash script. I am using wget
and piping to tar
and running it in the background with &
.
wget -q "https://download-of-large-file-here.tar.gz" | tar xz &
# other commands here
However, this is breaking with:
gzip: stdin: unexpected end of file
tar: Child returned status 1
tar: Error is not recoverable: exiting now
Any idea how to make this work?