TIP: Click on subject to list as thread! ANSI
echo: os2rexx
to: All
from: Eddy Thilleman
date: 1999-10-10 21:38:00
subject: start wget

Hello All,

the for...in...do that calls (in the same session) or starts (in a separate
session) the wgetmir.cmd REXX file  in combination with redirection to nul
results in weird behavior (the log file names gets a space in the middle and
the log output of wget is placed in the file with the url's listed). I don't
know why this is, it took some time before I found the solution: leave out the 
redirection.

------------------- begin of startwget.cmd -------------------
@echo off
c:
cd \www

call cheap
if not errorlevel 1 exit

if exist wget.ftp call wgetftp
for %%a in (wget*mirror) do call wgetmirror %%a
for %%a in (wget*mir)    do call wgetmir %%a
for %%a in (wget*news)   do start /win /c /b wgetnews %%a
for %%a in (wget*www)    do start /win /c /b wgetwww %%a
for %%a in (wget*x)      do start /win /c /b wgetx %%a
exit
-------------------- end of startwget.cmd --------------------

In wgetmir.cmd I use the arg() function instead the arg keyword to get the
filename to prevent the filename is uppercased (parse arg would do too
according to the REXX INF file).

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

... Windows?  Honey don't play that!
--- GoldED/2 3.0.1
* Origin: Windows98 is a graphic DOS extender (2:500/143.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™.