ftp hangs

  • Thread starter Thread starter Ryan Poth
  • Start date Start date
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
 
I guess it is better to post your script with the hash command along with
the scripts or commands that worked.
 
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
 
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
 
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
 
Back
Top