TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: All
from: Eddy Thilleman
date: 1999-12-06 00:55:22
subject: wget

Hello Jack,

03 Oct 99 23:42, Jack Stein wrote to Eddy Thilleman:

JS> Couldn't you just send the output to Rxqueue, then write it to disk
JS> and to sceen?  Just a thought, I think you could do it though just by
JS> piping the output to a queue.

When I connect to internet, multiple wget sessions are started. In the task-
or window list (Ctrl-Esc) all wget sessions are shown with what they are
currently downloading. But I miss the completed percentage of the file
currently downloading. So I'm thinking about - with a tee program - feeding
the output of wget to a log file (for logging, which I do already) and to
another destination (a pipe or a named pipe or a queue) and look in this new
destination for the progess with a rexx program, running in a separate
session, and one for each wget session, doubling the number of processes
needed for wget, so this is a disadvantage which I would like to avoid.
Writing the rexx program will not be a problem (at least I don't expect it to
be).

Because multiple wget sessions are running, I need for each wget process a
separate pipe, so does this mean I need to use a named pipe?

I think that it would be better to put - in the tasklist or the window list -
the percentage completed of the file currently being downloaded behind the
url/filename, but that means changing wget and because I don't have a
C-compiler and I have never programmed in C, I can't do that.

On a seperate note, it's possible to put additional parameters in the list
file with the files/url's to get. I haven't thought of this before.

JS> wget 'parameters' |rxqueue

Ah, I see I can give the queue a name with rxqueue(). But I am not sure about
how to use a named queue from a plain batch file.

is a queue also a pipe? I ask this because I see the pipe symbol.

JS> Something like that might work.

Noted.

  Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl

... WindowError:00F Unexplained error.  Please tell us how it happened.
--- GoldED/2 3.0.1
* Origin: Windows98 is a graphic DOS extender (2:280/5143.7)

SOURCE: echoes via The OS/2 BBS

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.