Per below, I am unable to connect to a given FTP site when I the
commands run a script, but am successful manually entering them from an
interactive command line. Had this problem a number of years ago & got
around it by using a ROBOT Replay object to simulate the command line.
That is not the preferred solution so we were hoping somebody could give
us an alternative way to overcome the problem while still using the
batch script. My gut feeling is there is something about the Microsoft
FTP Server vs. UNIX ones that requires a different Login/Password schema
in the script, but that is a guess.



Following snippets (with actual IP addresses & Login info altered for
security purposes) represent the following:



1. CLP that calls the batch scripts



OVRDBF FILE(INPUT) TOFILE(&TMPLIB/FTPCMD)

OVRDBF FILE(OUTPUT) TOFILE(&TMPLIB/FTPLOGT)



FTP RMTSYS(&IPADDR)



2. Script sample - we are failing on the initial Login/Password line. I
also tried a script with the Login & Password on separate lines to mimic
the way the interactive process is run.



LOGINA\LOGINB A*****$ We tried a simpler Login without
the embedded \ with the same result

ASCII

PUT ***ESTF/***CUST CUSTMASTER.TXT

QUIT



3. Failing FTP script



Output redirected to a file.

Input read from specified override file.

Connecting to remote host ***.100.100.*** using port 21.

220 Microsoft FTP Service

Enter login ID (jmsb):

331 Password required for LOGINA\LOGINB

530 User LOGINA\LOGINB cannot log in.



4. Example of successful one



Output redirected to a file.

Input read from specified override file.

Connecting to remote host ***.100.100.*** using port 21.

220-******* FTP Server (vftpd 1.31) ready.

220 Welcome to the *** INTERNAL FTP Site

Enter login ID (ftpbatch):

331 Password required for V*****.

230 User V***** logged in.

UNIX Type: L8



5. Response from a network administrator when I told him this technique
was successful with many other sites.




The ftp version is the same as on other servers. It is the built in ftp
server that comes with IIS in windows 2003. The only difference with
this server is that it's a 64bit operating system which I'm not sure if
it plays a role in this issue.






As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.