Sunday 4 February 2018

show progress when uploading with curl

curl has a --progress-bar option, however it appears that STDOUT overwrites it's output. A workaround for this is to redirect STDOUT to /dev/null as shown in the following example:
curl -v -u 'my_username:my_pass' --upload-file foo.tar.gz http://nexus.stack1.com/content/sites/binaries/golang/ --progress-bar  > /dev/null


No comments:

Post a Comment