TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: Eddy Thilleman
from: Jack Stein
date: 1999-10-03 23:42:29
subject: hstart wget?

Eddy Thilleman wrote in a message to John Clarke:

JC> This puts the files in d:\down-dos or d:\down-win etc and writes the
JC> output to screen.  I haven't found a way to put it to screen and to a
JC> logfile at the same time - it seems to be one or the other.

 ET> I asked this in the wget mailing list, it is possible if you
 ET> use a program 'tee' in addition:
 ET> pipe the output of wget to tee which will sent that output
 ET> to two filehandles (one can be the screen and one can be a
 ET> log file). 

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

wget 'parameters' |rxqueue

Should, I think, get the output to the queue.
Then...

QueueLoop:         
do forever                               
  if queued()=0 then leave               
  line = linein('QUEUE:')
  say LINE
  rc = linout(logfile, Line)
end    

Something like that might work.

                                              Jack 
--- timEd/2-B11
* Origin: Jack's Free Lunch 4OS2 USR 56k Pgh Pa (412)492-0822 (1:129/171)

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™.