[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Prob: w/ "Invalid Argument" message
From: |
Ray Satiro |
Subject: |
Re: [Bug-wget] Prob: w/ "Invalid Argument" message |
Date: |
Mon, 6 Jun 2011 22:42:36 -0700 (PDT) |
> C:\Documents and Settings\user> "C:\Program Files\GnuWin32\bin\wget.exe" -N
> -c
>-S -r -l 0 -k -p -w 1 -x -t 0 -np -A * --preserve-permissions
>--user=anonymous
>address@hidden -P "I:\host_stuff\" -o "I:\Logs\wGet\"
>"ftp://ftp.host.domain.com/dir1/db/"
There are two parsing issues.
1 Asterisks are expanded to matching filenames by the command line interpreter.
Depending on version even if quoted.
2 Placing a backslash before a double quote escapes it
I didn't check your other arguments but what you want is probably this
"C:\Program Files\GnuWin32\bin\wget.exe" -N -c -S -r -l 0 -k -p -w 1 -x -t 0
-np
--preserve-permissions --user=anonymous address@hidden -P
"I:\host_stuff" -a "I:\Logs\wGet\wget.log" "ftp://ftp.host.domain.com/dir1/db/"
no asterisk if you want to accept all files
no backslash before the quote. if you really needed to pass I:\host_stuff\ you
would pass "I:\host_stuff\\"
the log names are not generated automatically you must choose a name
also related:
a quoting issue came up in the gnuwin32 help forum recently. I wrote a simple
program getargs to demonstrate how command line arguments will be seen by a gcc
compiled C program after the command line is parsed. if you want a better
understanding read this
https://sourceforge.net/projects/gnuwin32/forums/forum/74807/topic/4550522
----- Original Message ----
> From: J. Maxwell <address@hidden>
> To: address@hidden
> Sent: Mon, June 6, 2011 2:03:01 AM
> Subject: [Bug-wget] Prob: w/ "Invalid Argument" message
>
> Hello,
>
> I am setting up wGet on an XP Windows platform for downloading a database,
>once established I'll attempt to mirror it.
> The command line I have supplied is as follows:
>
> C:\Documents and Settings\user> "C:\Program Files\GnuWin32\bin\wget.exe" -N
> -c
>-S -r -l 0 -k -p -w 1 -x -t 0 -np -A * --preserve-permissions
>--user=anonymous
>address@hidden -P "I:\host_stuff\" -o "I:\Logs\wGet\"
>"ftp://ftp.host.domain.com/dir1/db/"
>
> Stdout =>
> SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
> syswgetrc = C:\Program Files\GnuWin32/etc/wgetrc
> --2011-06-05 19:47:57-- http://.texlive2010/
> Resolving .texlive2010... failed: Host not found.
> C:\Program Files\GnuWin32\bin\wget: unable to resolve host address
>`.texlive2010
> '
> --2011-06-05 19:48:00-- http://.virtualbox/
> Resolving .virtualbox... failed: Host not found.
> ----
> ----
> ----
> / Process attempts to resolve a long list of all folders and
> files
>in my C:\Documents and Settings\user> folder
> Then it eventually gets to the host's URL
> /
> --2011-06-05 19:53:50-- ftp://ftp.host.domain.com/dir1/db/
> => `I:/host_stuff" -o
>I:/Logs/wGet"/ftp.host.domain.com/dir1/db/.listing'
> Resolving ftp.host.domain.com... xxx.xxx.xxx.xxx
> Connecting to ftp.host.domain.com|xxx.xxx.xxx.xxx|:21... connected.
> Logging in as anonymous ...
> 220-
> Warning Notice!
> ----
> ----
> ----
> 230 Anonymous access granted, restrictions apply.
> --> SYST
>
> 215 UNIX Type: L8
> --> PWD
>
> 257 "/" is current directory.
> --> TYPE I
>
> 200 Type set to I
> --> CWD /dir1/db
>
> 250 CWD command successful
> --> PASV
>
> 227 Entering Passive Mode (xxx,xxx,xxx,xxx,196,77)
> --> LIST -a
>
> 150 Opening ASCII mode data connection for file list
> I:/host_stuff" -o I:/Logs/wGet"/ftp.host.domain.com/dir1/db: Invalid
>argumentI:/host_stuff" -o I:/Logs/wGet"/ftp.host.domain.com/dir1/db/.listing:
>Invalid argument
> unlink: Invalid argument
>
> Then process dies and returns the shell prompt.
> One thing that I have noticed is that I entered the directory format for the
>C:\, and I:\ directories in Microsoft's format with "\" but Stdout spit them
>back out in UNIX syntax when it complains of "Invalid arguments".
> I also changed the wgetrc file in both the bin and the etc directories to
>.wgetrc and added default parameters to them, returned them to original MT
>state also.
>
> Hopefully, someone can tell me where I am messing up.
>
> Thanks!
>
>