Post login commands

From FileZilla Wiki
Revision as of 08:41, 30 July 2010 by CodeSquid (talk | contribs) (Created page with 'Some obscure legacy servers require some custom commands to be issued before they are usable by modern FTP clients. Manually entering these commands does not work as they do not …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Some obscure legacy servers require some custom commands to be issued before they are usable by modern FTP clients. Manually entering these commands does not work as they do not apply to the transfer connections which are separate from the browsing connection.

There is a workaround using the post-login command feature of the site-manager. Add a new site-manager entry and close FileZilla. Next open sitemanager.xml in the settings directory of FileZilla and add a PostLoginCommands element inside the Server element. Inside PostLoginCommand, use the Command element, with the actual command to execute as text.

Example:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<FileZilla3>
    <Servers>
        <Server>
            <Host>127.0.0.1</Host>
            <Port>21</Port>
            <PostLoginCommands>
              <Command>PWD</Command>
              <Command>QUIT</Command>
            </PostLoginCommands>
        </Server>
    </Servers>
</FileZilla3>


If connecting using this site-manager entry, these commands get executed in the transfer connections as well.