Hi.

I'm occasionally getting FTP GET errors using the ftpget method and find the
ftperrno of rather limited use in diagnosing the problem.

Here's a sample trace showing such a problem.  Is the actual error exposed
anywhere other than by turning on debugsay?


Getting 'YT99T.TPFD.#020902.SCRIPT' ...
  1135 *-* if arg() > 3 
       >>>   "0"
  1136 *-* if arg() < 2 
       >>>   "0"
  1137 *-* if arg() = 2 
       >>>   "0"
  1141 *-*   else
  1141 *-*     do
  1142 *-*     use arg flocal, fremote, typestr
       >>>       "temp.script"
       >>>       "'YT99T.TPFD.#020902.SCRIPT'"
       >>>       "ASCII"
  1143 *-*     if typestr~substr(1, 1) = 'A' 
       >>>       "1"
  1143 *-*       then
  1143 *-*         tmptype = .true
       >>>           "1"
  1146 *-*   end
  1148 *-*   self~thrdstatus = ''
       >>>     ""
  1151 *-*   if tmptype <> self~ascii 
       >>>     "0"
  1161 *-*   if self~csock = 0 
       >>>     "0"
  1167 *-*   if self~mode = .true 
       >>>     "0"
  1194 *-*     else
  1194 *-*       do
  1196 *-*       retc = self~ftppasv()
       >>>         "0"
  1197 *-*       if retc = -1 
       >>>         "0"
  1201 *-*       if self~pasvrecv(flocal) = -1 
       >>>         "1"
  1201 *-*         then
  1201 *-*           do
  1202 *-*           self~debugsay('Error creating connection socket.')
  1203 *-*           self~ftperrno = 'FTPCOMMAND'
       >>>             "FTPCOMMAND"
  1204 *-*           return -1
       >>>             "-1"
FTP get error, FtpErrno = FTPCOMMAND
Response: 227 Entering Passive Mode (148,171,100,1,132,58)



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to