Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

File Write activity

File Write activity

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.

Note: This activity is deprecated and its use in new workflows is not recommended. To replace the functionality of this activity with a scoped activity, use the SSH activity designer.

Input variables

Table 1. File write input variables
Field Description
Hostname Hostname or IP address of destination server for SSH activity.
Directory Name of the working directory.
File Name of the file to be written.
Behavior Select one of the following behaviors:
  • Overwrite: Creates the file if it doesn't exist and overwrites the file if it does exist.
  • Append: Creates the file if it doesn't exist and appends the new content to an existing file.
  • Create only: Creates the file if it doesn't exist and fails if the file does exist.
Contents What to write or append (depending on the behavior) to the file