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 6: Line 6:
  
  
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 23:
 
             <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 30:
 
  </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)