How to use FTP's APPEND command in a script?

Posted by btelles on Stack Overflow See other posts from Stack Overflow or by btelles
Published on 2010-05-05T21:14:51Z Indexed on 2010/05/05 21:18 UTC
Read the original article Hit count: 242

Filed under:
|
|
|
|

Hi there, For some reason when I try to use "append" while inside an FTP script, the ftp client appears to hang.

I've tried all sorts of different variations (for example, including the destination filee and not, using quotes and not), and all I ever get is a "No such file or directory" error (and I KNOW it's there) or it hangs on an 200 Request OK and never does anything.

    ftp> open ibm.some_server
    Connected to ibm.some_server
    230 USER1 is logged on.  Working directory is "USER1.".
    Remote system type is MVS.

    ftp> cd 'Z.TABS.'
    250 "Z.TABS." is the working directory name prefix.

    ftp> append 'SAMASCPY'
    'SAMASCPY': No such file or directory

    ftp> append SAMASCPY
    200 Port request OK.

Anyone know what could be going on?

© Stack Overflow or respective owner

Related posts about ftp

Related posts about ftp-client