Re: OT ftp mget



Hi Basil,

"Basil Holloway" <farl7FAKE@xxxxxxxxxxx> schreef in bericht news:NDQbl.11324$cu.10407@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Bob and Uli
Had no success running the .bat file on XP

Bob

Here an exact copy of the file I setup called ftpbff.bat

open www7b.boulder.ibm.com
anonymous
farl7@xxxxxxxxxxx
binary
prompt
cd aix/fixes/pkgs/qhmsn
get 160.bff "C:\AIXFIX"
bye

On XP machine Start/Run C:\ftpbff.bat
The black command window opens for a milli second and that is all.

<snip>

Because I don't have any experience with online ftp and because I'm working on an XP-machine, I thought let's give it a try.
(Pardon the Dutch XP, but you'll get the drift no doubt)

Here's what I did:
I made an AIXFIX directory and an ftpbff.txt scriptfile in C:\
Result of a "dir /ogne"-command
Het volume in station C heeft geen naam.
Het volumenummer is C046-3F55

Map van C:\

16-01-2009 11:08 <DIR> AIXFIX
19-01-2008 17:13 <DIR> Documents and Settings
24-12-2008 21:15 <DIR> Program Files
08-01-2009 22:36 <DIR> Temp
15-01-2009 21:01 <DIR> WINDOWS
15-01-2008 15:27 0 AUTOEXEC.BAT
15-01-2008 15:27 0 CONFIG.SYS
16-01-2009 11:08 102 ftpbff.txt
3 bestand(en) 102 bytes
8 map(pen) 81.288.376.320 bytes beschikbaar

These are the contents of the scriptfile ftpbff.txt :
anonymous
farl7@xxxxxxxxxxx
binary
prompt
cd aix/fixes/pkgs/qhmsn
get 159.bff
get 160.bff
bye

Notice that the "open" command is missing. I found out (the hard way) that including this command in the scriptfile confuses ftp; somehow it doesn't parse the logon correctly.

Next I opened an XP-"DOS-box" with Start>Run>cmd
changed to C:\AIXFIX and entered the ftp-command as shown below in the listing of the DOS-box:

Start listing of DOS-box = = = = = =
Microsoft Windows XP [versie 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Jelte>cd\aixfix

C:\AIXFIX>ftp -s:c:\ftpbff.txt www7b.boulder.ibm.com
Verbonden met www7b.boulder.ibm.com.
220-****************************************************************************
***
220-*
*
220-* IBM's internal systems must only be used for conducting IBM's
*
220-* business or for purposes authorized by IBM management.
*
220-*
*
220-* Use is subject to audit at any time by IBM management.
*
220-*
*
220-****************************************************************************
***
220-
220 service5.boulder.ibm.com. FTP server (Version wu-2.6.2(4) Custom Thu Feb 12
14:27:47 MST 2004) ready.
Gebruiker (www7b.boulder.ibm.com:(none)):
331 Guest login ok, send any password.

230 Guest login ok, access restrictions apply.
ftp> binary
200 Type set to I.
ftp> prompt
Interactieve modus Uit .
ftp> cd aix/fixes/pkgs/qhmsn
250 CWD command successful.
ftp> get 159.bff
200 PORT command successful.
550 159.bff: No such file or directory.
ftp> get 160.bff
200 PORT command successful.
550 160.bff: No such file or directory.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 1248 bytes in 0 transfers.
221-Thank you for using the FTP service on service5.boulder.ibm.com..
221 Goodbye.

C:\AIXFIX>
End listing of DOS-box = = = = = =

So this setup seems to work, apart from the fact that the two files seem to be unavailable.
Funny thing is, that Ünal's link
http://www7b.boulder.ibm.com/aix/fixes/pkgs/qhmsn/
worked yesterday, but responds with a "403 Forbidden" today.
Maybe that's why the files aren't available (to me)?

Anyway, to further automate the download, you could make a .bat or .cmd file containing the ftp-command.
e.g. xfixdwn.bat containing :
C:
cd\aixfix
ftp -s:c:\ftpbff.txt www7b.boulder.ibm.com

Works like a charm.

PS I tried this (ftp in stead of http) and it turned out empty
ftp://www7b.boulder.ibm.com/aix/fixes/pkgs/qhmsn/

downloading index.html from
ftp://www7b.boulder.ibm.com/aix/fixes/pkgs/c62m4/
with the above setup worked flawless, so the setup is good.


HTTH,

--
Jelte,
Admirer of the letter of IBM with blue Ishiki

.



Relevant Pages

  • Re: For Lance
    ... only if I setup PASV at all or should I setup for both regular and PASV ... > Port 21 isn't the only one that's used for FTP. ... > firewalls, raise the firewalls, make firewall exceptions and troubleshoot ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: First day with Ubuntu - now what?
    ... Then there is also the Linux Documentation Project - 35 books on line ... ftp> cd MCC ... 200 PORT command successful ...
    (uk.comp.os.linux)
  • Re: I cannot get my damn FTP server to work? Really frustrating.
    ... you don't need to setup router port forwarding just to FTP ... >> of your internal network (anyone on the internet) to access your ftp ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: OWA not seen from RWW Main Menu
    ... Tks Marina ... Our setup is ADSL line to Router/Modem to WAN NIC to SBS Std ... > You don't check FTP, as you surely are not running FTP server on your box, ... If you have enabled RRAS for VPN, ...
    (microsoft.public.windows.server.sbs)
  • Re: setting up FTP
    ... Networking, Internet, Routing, VPN Troubleshooting on ... I don't know if I have everything setup correctly. ... Gene6 has a testing page to access FTP sites... ...
    (microsoft.public.windows.server.networking)