small medium large xlarge

12 May 2016, 16:04
Steven Donahue (2 posts)

Hit a wall trying to use $ curl -0 It seems to download a lot of stuff … then stalls. When I go to extract the tar.bz2, there is nothing to extract.

14 May 2016, 17:28
Steven Donahue (2 posts)

I must have gone temporarily blind. I was using a Zero instead of O after curl. Oh well, it works.

13 May 2017, 14:10
Ture Hoefner (2 posts)

I think the -0 (minus zero) is ok, that is telling curl to use HTTP 1.0.

I think a -o (minus small oh ) is needed so that we download the data to a file instead of writing it to stdout. Mine stalled too (macOS Sierra 10.12.4) until I modified the command to write to a file.

I changed the curl command that is used to download the Project Gutenberg data. I added a -o switch to specify a file to stream the data to:

curl -0 -o rdf-files.tar.bz2

– Ture Hoefner

You must be logged in to comment