[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FW: BATCH ftp ?
Sender: Scott Klement <klemscot@xxxxxxxxxxxx>
On Fri, 22 Feb 2002, Mark Allen wrote:
>
> Having a problem with list and get. List brings back nothing,
> get always gives -4 error. Connects ok per job log. Doing
> manually with same works? Any ideas?
>
What is a "-4 error"?
Whenever you call a routine from FTPAPI and it fails, it returns a -1.
Then, you need to call FTP_ERROR to get the message and/or error number
that occurred.
(The error numbers returned by FTP_ERROR are positive numbers.)
So, where does this "-4" come from?
Take a look at the "TESTMGET" member in your LIBFTP/FTPAPISRC file
for an example of calling FTP_LIST and then getting the error message
that occurred.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------