Reg Input to curl from tar command compressed output
Date: Mon, 6 Apr 2020 12:42:43 +0530
Hi ,
I need a clarification on sharing input to curl using pipe.
I want to share the output of tar compressed image to curl as an input
using pipe.
Commands i tried to pipe :
1)tar --create --file=- --directory=/dir1 ./ | gzip > gzipimage.tar.gz
2)curl -v -T gzipimage.tar-gz tftp://192.168.20.10/
I have tried the following. But unsuccessful.
tar --create --file=- --directory=/dir1 ./ | gzip > - | curl -v -d
"@-" -T gzipimage.tar.gz tftp://192.168.20.10/ > gzipimage.tar.gz
My intention is to avoid creating the intermediate compressed image (
gzipimage.tar.gz ) while uploading the compressed file using curl.
Thanks.
Regards,
Murugan
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2020-04-06