Batch FTP fails at one location

K

Keith-Earl

I have run the following FTP script without any problems for over a year at
three or four different sites. When I visited a new client site the script
dies on the mget *.*

Why would mget fail? Can I use another FTP command to get all files in a
folder?

I invoke the script with this command in a batch file:
ftp -s:myFTP.txt ftp.mySite.com

myFTP file contents
--------
myAccount
myPassword
cd www\ezt\data
lcd C:\Backup\
binary
mget *.*
 
J

James Egan

Why would mget fail?

The firewall at your client site not allowing the ftp server to
instigate the data connection.

afaik the command line ftp can't work passively.


Jim.
 
R

Ron Lowe

Keith-Earl said:
I have run the following FTP script without any problems for over a year at
three or four different sites. When I visited a new client site the script
dies on the mget *.*

Why would mget fail? Can I use another FTP command to get all files in a
folder?

I invoke the script with this command in a batch file:
ftp -s:myFTP.txt ftp.mySite.com

myFTP file contents
--------
myAccount
myPassword
cd www\ezt\data
lcd C:\Backup\
binary
mget *.*


Simplify the problem.

Forget scripting for the moment, and try manual FTP.
Can you 'ls' the site?

If not, it probably is indeed a firewall issue.
Try another FTP client, in passive mode.

The command-line FTP client that comes with XP does not support passive
mode.
Grab a copy of gFTP instead, which does:

ftp://ftp.gnu.org/old-gnu/emacs/windows/contrib/ftp-for-win32.zip
 
K

Keith-Earl

Okay, but I have no problem using an FTP client such as WS_FTP_Lite
What do you suggest as a workaround? I am just trying to do a low-tech file
transfer in case my ISP goes down. The files just need to make it intact,
slow is okay...

Thank you very much for your help.
 
K

Keith-Earl

aha. Thanks, Ron. Will test later this afternoon, wish I could test now.
Interested. I am using XP on all "recipient" machines and it works at four
other customer sites, just not at this one. I do not doubt it is a firewall
issue. I guess WS_FTP_Lite does not use the same mode since I can
successfully pull the files at the bad site with that tool.

Really appreciate your help.

Keith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top