Some versions of FTP can take macros via an "ftprc" file. Or you might want to look at expect (which was specifically designed for scripting interactive programs). This might help: http://www.osnews.com/story.php/10929/Command-line-interactive-programs-in-UNIX-shell-scripts Expect home page: http://expect.nist.gov/ -- Aj.