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

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
   <[1]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:
     [2]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

References

   1. mailto:luciano.vigna@xxxxxxxxx
   2. 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
-----------------------------------------------------------------------