View Single Post
Old 04-01-2004, 04:31 PM  
mr_F_2
Senior Member
 
Join Date: Jan 2004
Posts: 203
Default

i wrote a simple batch file for this, in hopes of sharing it, but stumbled across something that puzzled me

in ioFTPD.ini:
urlget = %EXEC ..\scripts\urlget\urlget.bat "%[$path]"

code is
Code:
@echo off
if %2.==. goto showsyntax

echo FOR TESTING ::: ..\scripts\urlget\wget.exe --tries=3 --directory-prefix=%1 --timeout=30 --waitretry=5 -nd %2
..\scripts\urlget\wget.exe --tries=3 --directory-prefix=%1 --timeout=30 --waitretry=5 -nd %2
goto end

:showsyntax
echo ---[site urlget help]--------------
echo usage: site urlget url
echo example: site urlget www.yahoo.com
echo -----------------------------------
goto end

:end
called from ..\ioftpd\system, the command sent is:
site urlget www.yahoo.com
sends params:

..\scripts\urlget\wget.exe --tries=3 --directory-prefix="F:\current\ftpd\path" --timeout=30 --waitretry=5 -nd "www.yahoo.com"

strangely enough though, wget fails. however, if I i load cmd to ..\ioftpd\system and call "..\scripts\urlget\wget.exe --tries=3 --directory-prefix=%1 --timeout=30 --waitretry=5 -nd %2
"
manually wget succeeds. something is impeding wget from resolving the host when called from ioFTPD, but I don't see why?

any idea's anybody?
mr_F_2 is offline   Reply With Quote