F
F
fdkur342018-10-19 13:32:34
linux
fdkur34, 2018-10-19 13:32:34

How to make wget download from a pipeline?

I started to study pipelines and came across that wget does not want to accept a link from the pipeline.

curl -s 'https://api.adoptopenjdk.net/v2/latestAssets/releases/openjdk11?openjdk_impl=hotspot&os=linux&arch=x64&release=latest&heap_size=normal&type=jdk' | jq -r '.[0].checksum_link' | wget

How to download immediately without saving to a file?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Softer, 2018-10-19
@fdkur34

wget $(curl -s 'https://api.adoptopenjdk.net/v2/latestAssets/releases/openjdk11?openjdk_impl=hotspot&os=linux&arch=x64&release=latest&heap_size=normal&type=jdk' | jq -r '.[0].checksum_link')

K
Karpion, 2018-10-20
@Karpion

In addition to the options already mentioned, I will also tell you about the /dev/stdin file - FreeBSD has it, I don’t know about other systems.
Or you need to look at wget's keys - maybe there is a key there that translates it to stdin.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question