Editing Post login commands

From FileZilla Wiki
Jump to navigationJump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 5: Line 5:
 
b) and/or by then the FileZilla client already finished the login to the server and commands may need to be sent prior to logging in.
 
b) and/or by then the FileZilla client already finished the login to the server and commands may need to be sent prior to logging in.
  
 +
A good example of an antique legacy platform where this applies, is the IBM i operating system that is very popular with banks and other businesses due to its very "compliant" architecture. Because of its perceived scalability and legendary reliably and stability it is sadly left running for months and years with no or little supervision, as many large companies with many thousands of these IBM i servers installed across head- and branch offices do with only a few employees being any the wiser or aware of their existence. Unfortunately, the IBM i's "do the job with no fuss" and self-managing, self-healing attributes are just marketing-speak, aimed at making other platforms appear as more troublesome and labor intensive platforms. This, coupled with its server-only personality (inability to be used as a GUI client platform), causes it to be unfairly perceived by too few as obscure and legacy, which in turn results in not enough lack of support for the platform by software developers. For example, IBM could very easily implement native support for TVFS as specified in RFC 3659. It would make life a lot easier for thousands of frustrated end-users where changing the FTP client is impractical because using legacy clients will most certainly break all modern applications.
  
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.
+
'''Simple IBM i workaround: specify '/' (without the quotes) for default remote directory on the Site manager - advanced tab
 +
'''
  
Example:
+
Workaround:  Use the post-login command feature of the site-manager as follows:
 +
- 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.
 +
 
 +
General example:
  
 
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
  <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
Line 17: Line 24:
 
             <Port>21</Port>
 
             <Port>21</Port>
 
             <PostLoginCommands>
 
             <PostLoginCommands>
               <Command>PWD</Command>
+
               <Command>VALID FTP COMMAND 1</Command>
               <Command>QUIT</Command>
+
               <Command>VALID FTP COMMAND n</Command>
 
             </PostLoginCommands>
 
             </PostLoginCommands>
 
         </Server>
 
         </Server>
Line 24: Line 31:
 
  </FileZilla3>
 
  </FileZilla3>
  
 +
Example for a non-secure connection to IBM i, i5/OS, OS/400, AS/400 and iSeries (works regardless of FTP server default settings for NAMEFMT, CURDIR and LISTFMT):
 +
 +
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 +
<FileZilla3>
 +
    <Servers>
 +
        <Server>
 +
            <Host>system_name</Host>
 +
            <Port>21</Port>
 +
            <Protocol>0</Protocol>
 +
            <Type>0</Type>
 +
            <User>user_profile</User>
 +
            <Logontype>2</Logontype>
 +
            <TimezoneOffset>0</TimezoneOffset>
 +
            <PasvMode>MODE_DEFAULT</PasvMode>
 +
            <MaximumMultipleConnections>0</MaximumMultipleConnections>
 +
            <EncodingType>Auto</EncodingType>
 +
            <PostLoginCommands>
 +
                <Command>SITE NAMEFMT 1</Command>
 +
                <Command>SITE LISTFMT 1</Command>
 +
            </PostLoginCommands>
 +
            <BypassProxy>0</BypassProxy>
 +
            <Name>system_name</Name>
 +
            <Comments></Comments>
 +
            <LocalDir></LocalDir>
 +
            <RemoteDir></RemoteDir>
 +
            <SyncBrowsing>0</SyncBrowsing>system_name
 +
        </Server>   
 +
    </Servers>
 +
</FileZilla3>
 +
 +
NOTES:
 +
 +
1. If connecting using this site-manager entry, these commands get executed in the transfer connections as well.
 +
 +
2. Sitemanager.xml file is located in %APPDATA%/FileZilla on Windows 7.
  
If connecting using this site-manager entry, these commands get executed in the transfer connections as well.
+
3. On Apple Mac OS X the file is located in /Users/user-name/.filezilla/sitemanager.xml

Please note that all contributions to FileZilla Wiki are considered to be released under the GNU Free Documentation License 1.2 (see FileZilla Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)