How do a I get the TIBCO Managed File Transfer Agent (MFT Agent) to delete a file after a successful transfer using the Command Line Interface?
book
Article ID: KB0085411
calendar_today
Updated On:
Products
Versions
TIBCO Managed File Transfer Agent
-
Not Applicable
-
Description
Resolution: Description ============
The outbox functionality of the MFT Agent allows the option of deleting a file once it has been transferred by the MFT Agent to a destination system. Users would like the same functionality when transferring a file via the Command Line Interface.
Environment ===============
All
Resolution =================
Users can use the from.postJob processing to delete of the source file once it is transmitted.
Upon execution of the post job script, the MFT Agent will populate the following 3 environment variables accessible from the script:
• FILE_NAME • FILE_SIZE • FILE_TRANSFER_STATUS
By creating a post processing script that does a ‘rm $FILE_NAME’, you can delete the source file. The description of these variables are documented in the Command Reference guide.
Keywords/Tags: = = = = = = = = =
Issue/Introduction
How do a I get the TIBCO Managed File Transfer Agent (MFT Agent) to delete a file after a successful transfer using the Command Line Interface?