附加行Append Line

重要

此版本的 Orchestrator 已達終止支援,建議您 升級至 Orchestrator 2019This version of Orchestrator has reached the end of support, we recommend you to upgrade to Orchestrator 2019.

[附加行] 活動會將一行文字附加至文字檔。The Append Line activity appends a line of text into a text file. 使用 [附加行] 活動可將行附加至記錄檔,以建立 runbook 的審核線索。Use the Append Line activity to append lines to a log file to create audits trails of runbooks.

此活動取代了 Opalis 6.3 中 [管理文字檔的舊版] 活動中的功能。This activity replaces functionality in the Manage Text File legacy activity from Opalis 6.3.

設定附加行活動Configuring the Append Line Activity

設定 [附加行] 活動之前,您必須決定下列各項:Before you configure the Append Line activity, you need to determine the following:

  • 您要附加的檔案名。The file name you want to append to.

  • 您要附加的檔案所使用的檔編碼類型。The type of file encoding that the file you are appending to uses.

  • 您附加的文字。Text you append.

您可以使用下列資訊來設定「附加行」活動。Use the following information to configure the Append Line activity.

[詳細資料] 索引標籤Details Tab

設定Settings 組態指示Configuration Instructions
檔案File 輸入您想要附加文字之檔案的路徑和名稱,或按一下省略號按鈕 ** ( ... ) ** 並流覽至該檔案。Type the path and name of the file that you want to append the text to, or click the ellipsis button (...) and browse for it.
檔案編碼File encoding 按一下省略號按鈕 ** ( ... ) ** ,然後從 [檔案 編碼 ] 下拉式清單中選取檔案的編碼格式。Click the ellipsis button (...) and select the format that the file is encoded in from the File encoding drop-down list. 確認您選取的是正確的編碼格式。Verify that you select the correct encoding format. 如果檔案使用不同的編碼格式,活動就會失敗。If the file uses a different encoding format, the activity fails.
TextText 輸入您想要附加至所指定檔案的文字。Type the text that you want to append to the file that you specified.

已發佈資料Published Data

下表列出已發佈的資料項目。The following table lists the published data items.

ItemItem 描述Description
檔案路徑File path 要附加該行之文字檔的路徑和檔案名。The path and file name of the text file to which the line is appended.
檔案編碼File encoding 您在 [檔案 編碼 ] 欄位中選取的檔編碼格式。The file encoding format that you selected in the File encoding field.
行文字Line text 附加至文字檔的行文字。The text of the line that was appended to the text file.
行號Line number 附加文字的行號。The line number where the text was appended.