[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

R: [FTPAPI] Reply message from ftp_put



Hi Michael,

Can you explain in detail the procedure "Logger", please?

I think your suggestion is interesting, I'll try it! Thank you!

Luciano



-----Messaggio originale-----
Da: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] Per conto di Michael Ryan
Inviato: lunedì 13 dicembre 2010 19:03
A: HTTPAPI and FTPAPI Projects
Oggetto: Re: [FTPAPI] Reply message from ftp_put

Hi Luciano -

I do it like this:

/////////////////////////////////////////////////////////
// Set logging routine.
/////////////////////////////////////////////////////////
BegSr SetLogging;
  // Register logging exit process.
  FTP_exitProc(sess: FTP_EXTLOG: %paddr(Logger): *null);

  // Turn FTP logging on for this session.
  FTP_logging(sess:*ON);
EndSr;

And my Logger procedure is just writing to a file. Here's an example
procedure call:

If ftp_put(sess: %Trim(ToName): %Trim(FmName)) < 0;
  Logger('Could not put file-' + %Trim(FmName) : *NULL);

HTH...

- Michael

On Mon, Dec 13, 2010 at 9:49 AM, Luciano Vigna
<luciano.vigna@xxxxxxxxx>wrote:

>
>   Hello, everyone
>
>
>   How can retrieve the message response from the ftp_put command? (i.e.
>   "226 File upload OK" or any error message), we need to know if the
>   file was upload correctly or not.
>
>
>   Thanks so much!
>
>
>   Luciano
>
> ----------------------------------------------------------------------
> - This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> ----------------------------------------------------------------------
> -
>
>

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------