bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wget input/output using stdin/stdout


From: Dan Lewis
Subject: wget input/output using stdin/stdout
Date: Fri, 1 Mar 2024 20:05:38 -0800

Greetings,

I have a program that loads and executes wget using the following command
line:

wget -i - -O -


and dups wget's stdin, stdout (and stderr) handles so that I can write URLs
to wget's stdin and read the responses from wget's stdout. What I wanted to
do was to write a sequence of URLs to wget's stdin, reading each response
before the next URL is sent. Rather, wget buffers its output so that it
doesn't output anything until I close its stdin. As a result, it seems that I
can only send all of the URLs to wget, close its stdin, and then read all
of the responses.

Is there any wget command line option that will cause wget to output a
response after each URL without waiting for me to close its stdin?

Thanks!
Dan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]