Just to be clear.... There is no indication that 226 bytes are returned from the /bin/ls command. 226 is the server code for "Transfer Complete" (with no other indication of how many bytes were actually transferred). | [reply] [d/l] [select] |
Oops. Have overseen that. Thanks. Nevertheless, having a look on wire will clarify if the problem is below or above the transport layer and on which side it can be solved best.
Another random idea: The FTP commands are part of a print statement. I don't expect that this is a problem, but maybe ... it is worth to save the $ftp->dir() result in a variable and print it in a separate statement... just to exclude the (unlikely) possibility of some messed up I/O streams... ?
| [reply] |