File Write activity

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • The File Write activity writes a file on a Linux or UNIX computer.

    The source file can be an absolute or relative path from the Directory. If an absolute path is used, then no value is required in the Directory field.

    This activity replaces an SSH activity by the same name available in releases prior to Istanbul. If you have a workflow created in a previous version that uses the deprecated activity, your workflow will continue to work normally after upgrading to Istanbul. However, all new workflows must use the custom version of this activity. This activity was built with the SSH activity template, which gives workflow administrators the ability to store input and output variables in the databus.

    Input variables

    표 1. File Write input variables
    Field Description
    hostname Hostname or IP address of destination server for SSH activity.
    directory Name of the working (target) directory.
    file Name of the file to be written.
    behavior Select one of the following:
    • overwrite: Creates the file if it does not exist and overwrites the file if it does exist.
    • append: Creates the file if it does not exist and appends the new content to an existing file.
    • create only: Creates the file if it does not exist and fails if the file does exist.
    contents What to write or append (depending on the behavior) to the file

    Output variables

    표 2. File Write output variables
    Variable Description
    return_code Indicates whether or not the file write operation was successful.
    error_message Message that indicates if an error has occurred. Any value other than 0 indicates a failure.

    Conditions

    표 3. File Write conditions
    Condition Description
    Success The activity wrote a file in the target directory.
    Failure The activity failed to write a file in the target directory.