home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 15 Message / 15-Message.zip / oe991211.zip / Rx991210.txt < prev    next >
Text File  |  1999-12-11  |  4KB  |  96 lines

  1.  
  2.                     Programming/using OS/2 REXX      (echo)
  3.  
  4.                  Saturday, 04-Dec-1999 to Friday, 10-Dec-1999
  5.  
  6. +----------------------------------------------------------------------------+
  7.  
  8. From: Eddy Thilleman                                    06-Dec-99 00:55:22
  9.   To: All                                               07-Dec-99 13:24:07
  10. Subj: wget
  11.  
  12. Hello Jack,
  13.  
  14. 03 Oct 99 23:42, Jack Stein wrote to Eddy Thilleman:
  15.  
  16. JS> Couldn't you just send the output to Rxqueue, then write it to disk
  17. JS> and to sceen?  Just a thought, I think you could do it though just by
  18. JS> piping the output to a queue.
  19.  
  20. When I connect to internet, multiple wget sessions are started. In the task-
  21. or window list (Ctrl-Esc) all wget sessions are shown with what they are
  22. currently downloading. But I miss the completed percentage of the file
  23. currently downloading. So I'm thinking about - with a tee program - feeding
  24. the output of wget to a log file (for logging, which I do already) and to
  25. another destination (a pipe or a named pipe or a queue) and look in this new
  26. destination for the progess with a rexx program, running in a separate
  27. session, and one for each wget session, doubling the number of processes
  28. needed for wget, so this is a disadvantage which I would like to avoid.
  29. Writing the rexx program will not be a problem (at least I don't expect it to
  30. be).
  31.  
  32. Because multiple wget sessions are running, I need for each wget process a
  33. separate pipe, so does this mean I need to use a named pipe?
  34.  
  35. I think that it would be better to put - in the tasklist or the window list -
  36. the percentage completed of the file currently being downloaded behind the
  37. url/filename, but that means changing wget and because I don't have a
  38. C-compiler and I have never programmed in C, I can't do that.
  39.  
  40. On a seperate note, it's possible to put additional parameters in the list
  41. file with the files/url's to get. I haven't thought of this before.
  42.  
  43. JS> wget 'parameters' |rxqueue
  44.  
  45. Ah, I see I can give the queue a name with rxqueue(). But I am not sure about
  46. how to use a named queue from a plain batch file.
  47.  
  48. is a queue also a pipe? I ask this because I see the pipe symbol.
  49.  
  50. JS> Something like that might work.
  51.  
  52. Noted.
  53.  
  54.   Greetings   -=Eddy=-        email: eddy.thilleman@net.hcc.nl
  55.  
  56. ... WindowError:00F Unexplained error.  Please tell us how it happened.
  57. --- GoldED/2 3.0.1
  58.  * Origin: Windows98 is a graphic DOS extender (2:280/5143.7)
  59.  
  60. +----------------------------------------------------------------------------+
  61.  
  62. From: John Clarke                                       08-Dec-99 17:49:24
  63.   To: Eddy Thilleman                                    10-Dec-99 06:58:07
  64. Subj: wget
  65.  
  66. On Dec 06, 1999 at 00:55 hrs, Eddy Thilleman of 2:280/5143.7 wrote to All:
  67.  
  68. Hello Eddy,
  69.  
  70.  ET> When I connect to internet, multiple wget sessions are started. In 
  71.  ET> the task- or window list (Ctrl-Esc) all wget sessions are shown with 
  72.  ET> what they are currently downloading.
  73.  
  74. Why bother to run multiple instances of wget?  
  75.  
  76. I put the URL complete into a list_file and let wget get each one in sequence. 
  77.  It puts each file into a single directory that I nominate on the command
  78. line.  The only disadvantage I have is that the wget display is either to the
  79. screen or a file - I have it pointed to the screen.  You could run a "tee"
  80. program to direct the output to both screen and a file if you want.
  81.  
  82. You could run multiple instances each running their own list_file if the sites 
  83. are running slow.  I've done that a couple of times.
  84.  
  85. Regards ... John
  86.  
  87. Email: jclarke@zip.com.au
  88.  
  89. --- MsgedSQ/2 3.30
  90.  * Origin: The Clearing House (3:713/730)
  91. 128/139
  92.  
  93. +----------------------------------------------------------------------------+
  94.  
  95. +============================================================================+
  96.