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)
|