ftp hangs

R

Ryan Poth

Not really an "XP" question per se, but I'm not sure where to ask it so here
goes...

I am trying to run the old DOS ftp command with a script and it consistently
hangs (i.e. no response, and I have to close the DOS window) when my script
tries to put a particular file. This has always worked in the past, and only
recently stopped working. Further info to consider is:

If I run an identical script to put other files (all of them smaller than
this one), it works fine.

If I run ftp manually (without a script), it works fine.

If I include the hash command, it looks like it is failing right when it
reaches 100k.

The file size is around 180k.

I have searched multiple forums and cannot find any similar posts.

Any ideas would be greatly appreciated.

Thanks,
Ryan
 
D

donald huang

I guess it is better to post your script with the hash command along with
the scripts or commands that worked.
 
R

Ryan Poth

Sure, it is pretty simple. For security, I have replaced the actual ftp
address, username and passwords with dummy values:

open ftp.mysitename.com
myusername
mypassword
prompt off
hash
put history.csv
bye
 
B

Bill Blanton

Try transfering the file in binary mode. After gaining access after the user/pass
issue a binary command.

open ftp.mysitename.com
myusername
mypassword

binary

prompt off
hash
put history.csv
bye
 
B

Bill Blanton

Have you tried the mput or send command instead of put? (Though I
don't hold much hope for that). You might try delaying the
initiation of the bye command, and do a dir or ls just before the bye
 

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

Similar Threads

Batch FTP 4
ftp problem 4
automate FTP 3
FTP Hangs 1
transfering file using FTP commands 1
How to download a file from a ftp web site?? 3
I can't connect to ftp server with ftp.exe 19
Emulated DOS FTP script ? 2

Top