ftp hangs

Posted: 01-22-2009, 05:54 AM
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

ftp hangs


Responses to "ftp hangs"

donald huang
Guest
Posts: n/a
 
Re: ftp hangs
Posted: 01-22-2009, 04:41 PM
I guess it is better to post your script with the hash command along with
the scripts or commands that worked.

"Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message
news:96D2CABC-52CF-49FE-B4E3-F3A5846E1CC5@microsoft.com...
> 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
Ryan Poth
Guest
Posts: n/a
 
Re: ftp hangs
Posted: 01-22-2009, 11:23 PM
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

"donald huang" wrote:
> I guess it is better to post your script with the hash command along with
> the scripts or commands that worked.
>
> "Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message
> news:96D2CABC-52CF-49FE-B4E3-F3A5846E1CC5@microsoft.com...
> > 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
>
Bill Blanton
Guest
Posts: n/a
 
Re: ftp hangs
Posted: 01-23-2009, 02:55 AM
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


"Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message news:43FD3FB6-3095-48E6-BAD7-720BCA0F94A5@microsoft.com...
> 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
>
> "donald huang" wrote:
>
>> I guess it is better to post your script with the hash command along with
>> the scripts or commands that worked.
>>
>> "Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message
>> news:96D2CABC-52CF-49FE-B4E3-F3A5846E1CC5@microsoft.com...
>> > 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
>>

Ryan Poth
Guest
Posts: n/a
 
Re: ftp hangs
Posted: 01-23-2009, 06:41 AM
Thanks for the suggestion Bill, but I tried that already.

"Bill Blanton" wrote:
> 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
>
>
> "Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message news:43FD3FB6-3095-48E6-BAD7-720BCA0F94A5@microsoft.com...
> > 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
> >
> > "donald huang" wrote:
> >
> >> I guess it is better to post your script with the hash command along with
> >> the scripts or commands that worked.
> >>
> >> "Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message
> >> news:96D2CABC-52CF-49FE-B4E3-F3A5846E1CC5@microsoft.com...
> >> > 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
> >>
>
>
>
Bill Blanton
Guest
Posts: n/a
 
Re: ftp hangs
Posted: 01-24-2009, 12:05 AM
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



"Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message news:B6F76942-B319-42BE-9FBB-DE6F650A25DA@microsoft.com...
> Thanks for the suggestion Bill, but I tried that already.
>
> "Bill Blanton" wrote:
>
>> 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
>>
>>
>> "Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message news:43FD3FB6-3095-48E6-BAD7-720BCA0F94A5@microsoft.com...
>> > 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
>> >
>> > "donald huang" wrote:
>> >
>> >> I guess it is better to post your script with the hash command along with
>> >> the scripts or commands that worked.
>> >>
>> >> "Ryan Poth" <RyanPoth@discussions.microsoft.com> wrote in message
>> >> news:96D2CABC-52CF-49FE-B4E3-F3A5846E1CC5@microsoft.com...
>> >> > 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
>> >>
>>
>>
>>

 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win XPE CF Hangs Mike Windows XP Embedded 0 05-22-2006 07:49 AM
XP Hangs Reed Windows XP Help & Support 4 10-20-2003 02:14 AM
xp hangs on many pcs Bob Day Windows XP 0 07-30-2003 03:11 PM
dvd rom hangs sam Windows XP Performance & Maintenance 1 07-20-2003 04:21 PM
Win XP Hangs !! alan watson Windows XP Performance & Maintenance 1 07-20-2003 02:34 PM