FTP Log On Icon

FTP - Log Off

Declaration

<AMFTPLOGOFF SESSION="text">

See Also

FTP - Advanced | FTP - Change Folder | FTP - Create Folder | FTP - Delete | FTP - Download | FTP - FXP | FTP - Log Off | FTP - Log On | FTP - Remove Folder | FTP - Rename | FTP - Synchronize Folders | FTP - Upload

Description

Ends a transaction with a File Transfer Protocol (FTP) server that was previously started with an FTP Log On step. FTP transactions should always end with an "FTP Log Off" step.

Practical Usage

Used to log off after transactions with an FTP server has completed.

Parameters

Session Properties

Property

Type

Req'd

Default

Markup

Description

Session

Text

Yes

FTPSession

SESSION="FTPSession2"

Specifies the session name to identify this log off request.

 

Custom Description

This action includes the Description tab for entering a custom step description.

More on setting custom step description

Standard Error Handling Options

This action also includes the standard Error Causes and On Error failure handling options/tabs.

More on Error Handling Options

Notes

Variables and Expressions

All text fields allow the use of expressions, which can be entered by surrounding the expression in percentage signs (example: %MYVARIABLE%, %Left('Text',2)%). To help construct these expressions, you can open Expression Builder from these fields by pressing F2.

More on variables
More on expressions
More on the expression builder

Example

NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.

 

Example 1 - This task will log onto an FTP site, download a single file and log off.

 In order for this task to work in your environment, please make the appropriate modifications in the properties of each activity.

 

<AMFTP ACTIVITY="logon" SERVER="YourFTPHost" USERNAME="YourUsername" PASSWORD="AM1MoyAfpKHilpraHBIX6ei1E/2ZhM5egRHalje6g6YThM=aME" />

<AMFTP SOURCE="/home/ftp_folder/filename.txt" DEST="C:\Temp\filename.txt" />

<AMFTP ACTIVITY="logoff" />

 

 

Example 2 - This sample task demonstrates the activities used to download files from one FTP server to another. The first two steps logs onto two separate FTP hosts and creates a unique session name for each connection. The third step performs the file transfer from one server to another. The last two steps are used to log off each FTP server.

 In order for this task to work in your environment, please make the appropriate modifications in the properties of each activity.

 

<AMFTP ACTIVITY="logon" SESSION="Server1Session" SERVER="ftp.server1.com" USERNAME="theuser" PASSWORD="AM2WknKdIcXr7JaSdh0lRfctA==aME" />

<AMFTP ACTIVITY="logon" SESSION="Server2Session" SERVER="ftp.server2.com" USERNAME="theuser" PASSWORD="AM2WknKdIcXr7JaSdh0lRfctA==aME" />

<AMFTP ACTIVITY="fxp" SOURCE="/Server1/myFolder/*.*" DEST="/Server2/myFolder/*.*" SUBFOLDERS="YES" KEEPFOLDERSTRUCT="YES" OVERWRITE="YES" RESULTDATASET="theDataset" SESSION="Server1Session" DESTINATIONSESSION="Server2Session" />

<AMFTP ACTIVITY="logoff" SESSION="Server1Session" />

<AMFTP ACTIVITY="logoff" SESSION="Server2Session" />

 

↑ Top of Page