× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 28-Jul-2016 08:53 -0500, rick baird wrote:

I've been using a bat file to execute FTP to download a flat physical
file - it worked just fine for weeks but suddenly it locks up and
disconnects after timing out.

here is the bat file:

ftp -s:acaboth.txt myftp.url.com>>acalog.txt

here is acaboth.txt

userid
password
quote site trim 0

Try inserting a after the above, and before the below:

quote pasv

recv P020715P/acarept01.acarept01 c:\ME\acarept.txt (replace
recv P020715P/acamanf01.acamanf01 c:\ME\Manifest_.txt (replace
quit

the log file shows it failing to open data connection.

ftp> Connected to ip.address.
220-QTCP at ip.address.
220 Connection will close if idle more than 5 minutes.
---> OPTS UTF8 ON
501 OPTS unsuccessful; specified subcommand not recognized.
User (ip.address:(none)):
---> USER userid
331 Enter password.
---> PASS password
230 userid logged on.
ftp> quote site trim 0
---> site trim 0
250 TRIM trailing blanks when sending database files option set to 0.
ftp> recv P020715P/acarept01.acarept01 c:\ME\acarept.txt (replace
---> PORT 10,60,254,110,194,85
200 PORT subcommand request successful.
---> RETR P020715P/acarept01.acarept01
425 Not able to open data connection.
ftp> recv P020715P/acamanf01.acamanf01 c:\ME\Manifest_.txt (replace
---> PORT 10,60,254,110,194,166
200 PORT subcommand request successful.
---> RETR P020715P/acamanf01.acamanf01
425 Not able to open data connection.
ftp> quit
---> QUIT
221 QUIT subcommand received.

Why would this work just fine 2 weeks ago, but now won't?

No idea why a change. However FWiW, regarding specification for passive connection; i.e. per ≥ quote help pasv ≤ 214 PASV: Instructs this system to passively open the next data connection.:
[https://www.google.com/search?q=ftp425+%22IBM+i+%22+epsv+OR+pasv]

From the above search can be found [even if only indirectly] listed:
[http://archive.midrange.com/midrange-l/201010/msg00333.html]
Subject: FTP from PC to I Series Issue
"Send a "QUOTE PASV" command anytime after logon but before your first PUT command."


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.