Fab file, unable to remote curl a S3 .gzip file

damoles

Instead of downloading a file on S3 to my local machine, I'm trying to download it to a remote machine in my fabfile. I've got some code with boto that finds the right key, and generates a url (which expires since its private), and then I try to issue something like

sudo('curl -o /tmp/test.gz {}'.format(url))

This doesn't seem to do anything as nothing is downloaded. I try to download this locally with the above command, but I usually get some relatively small file that isn't right. Do I need different options to the curl command? Thanks.

damoles

Turns out I just forgot to add quotes around the URL. I added them and it works fine. Final code would be something like:

sudo('curl -o /tmp/test.gz "{}"'.format(url))

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Unable to decompress gzip file

From Dev

Unable to PHP read a remote file's content

From Java

How to download GZip file from S3?

From Dev

Reading contents of a gzip file from a AWS S3 in R

From Dev

Read gzip file from s3 bucket

From Dev

Unable to Reference a S3 file in Terraform

From Java

Reading Gzip File Footer with CURL or WGET

From Dev

Php S3 SDK download file : curl_multi_exec(): Unable to create temporary file, AWS HTTP error: cURL error 23: Failed writing body (7744 != 16360)

From Dev

upload file to S3 via cURL using presigned URL

From Dev

Rails: How to send file from S3 to remote server

From Dev

Unable to fetch file from s3 with api

From Dev

Unable to set file content type in S3

From Dev

AWS Lambda unable to GET a file from S3

From Dev

unable to upload image file to S3 bucket via PHP

From Dev

Unable to download a file from S3 by the URL in a browser

From Dev

Unable to upload a pdf file to AWS s3 bucket - PHP

From Dev

Reading contents from gzip file which was available in AWS S3

From Dev

Contents of a gzip file from a AWS S3 in Python only returning null bytes

From Dev

Unable to capture cURL output in a text file?

From Dev

curl error: unable to set private key file

From Dev

Unable to use XMLReader for an xml file on a remote machine

From Dev

fsockopen unable to connect error with remote css file

From Dev

Unable to restore SQL Server bak file from S3, says file too large

From Dev

Unable to download file from s3 using return response()->download($file);

From Dev

json.dump to a gzip file in python 3

From Dev

<Include> an xml file with a fab button as it is

From Dev

Get the MD5 value of an S3 file using curl

From Dev

Retrieve file from S3 with curl from EC2 using IAM role

From Dev

Rails 4 and paperclip - Stop the :original style file upload to copy it from an S3 remote directory

Related Related

  1. 1

    Unable to decompress gzip file

  2. 2

    Unable to PHP read a remote file's content

  3. 3

    How to download GZip file from S3?

  4. 4

    Reading contents of a gzip file from a AWS S3 in R

  5. 5

    Read gzip file from s3 bucket

  6. 6

    Unable to Reference a S3 file in Terraform

  7. 7

    Reading Gzip File Footer with CURL or WGET

  8. 8

    Php S3 SDK download file : curl_multi_exec(): Unable to create temporary file, AWS HTTP error: cURL error 23: Failed writing body (7744 != 16360)

  9. 9

    upload file to S3 via cURL using presigned URL

  10. 10

    Rails: How to send file from S3 to remote server

  11. 11

    Unable to fetch file from s3 with api

  12. 12

    Unable to set file content type in S3

  13. 13

    AWS Lambda unable to GET a file from S3

  14. 14

    unable to upload image file to S3 bucket via PHP

  15. 15

    Unable to download a file from S3 by the URL in a browser

  16. 16

    Unable to upload a pdf file to AWS s3 bucket - PHP

  17. 17

    Reading contents from gzip file which was available in AWS S3

  18. 18

    Contents of a gzip file from a AWS S3 in Python only returning null bytes

  19. 19

    Unable to capture cURL output in a text file?

  20. 20

    curl error: unable to set private key file

  21. 21

    Unable to use XMLReader for an xml file on a remote machine

  22. 22

    fsockopen unable to connect error with remote css file

  23. 23

    Unable to restore SQL Server bak file from S3, says file too large

  24. 24

    Unable to download file from s3 using return response()->download($file);

  25. 25

    json.dump to a gzip file in python 3

  26. 26

    <Include> an xml file with a fab button as it is

  27. 27

    Get the MD5 value of an S3 file using curl

  28. 28

    Retrieve file from S3 with curl from EC2 using IAM role

  29. 29

    Rails 4 and paperclip - Stop the :original style file upload to copy it from an S3 remote directory

HotTag

Archive