Execute multiple Command Lines based on Text File Inputs — n8n ワークフロー

複雑度 トリガー7個のノード💎 Other👁 3,065回閲覧作成者:jason

概要

This workflow takes a text file as input. It pulls the information from the text file and used it as a parameter to execute a command for each text line.

This workflow references a file /home/n8n/filelist.txt in the Read Binary File node which will need to be changed to work properly. You can also edit the Execute Command node to modify what happens for each of these lines of text.

Note: This workflow requires the Execute Command node which is only available on the on-premise version of n8n.

使用ノード

On clicking 'execute'Read Binary FileMove Binary DataFunctionExecute CommandIFNoOp

ワークフロープレビュー

O
On clicking 'execute'
R
Read Binary File
M
Move Binary Data
F
Function
E
Execute Command
I
IF
N
NoOp
7 nodes7 edges

仕組み

  1. 1

    トリガー

    このワークフローは トリガー トリガーで開始します。

  2. 2

    処理

    データは 7 個のノードを流れます, connecting executecommand, function, if。

  3. 3

    出力

    ワークフローは自動化を完了し、設定された宛先に結果を配信します。

ノード詳細 (7)

ON

On clicking 'execute'

manualTrigger

#1
RE

Read Binary File

readBinaryFile

#2
MO

Move Binary Data

moveBinaryData

#3
FU

Function

function

#4
EX

Execute Command

executeCommand

#5
IF

IF

if

#6
NO

NoOp

noOp

#7

このワークフローのインポート方法

  1. 1右側の JSONをダウンロード ボタンをクリックしてワークフローファイルを保存します。
  2. 2n8nインスタンスを開き、ワークフロー → 新規 → ファイルからインポート に進みます。
  3. 3ダウンロードした execute-multiple-command-lines-based-on-text-file-inputs ファイルを選択し、インポートをクリックします。
  4. 4各サービスノードの 認証情報(APIキー、OAuthなど)を設定します。
  5. 5ワークフローをテスト をクリックして動作確認し、有効化します。

またはn8nの JSONからインポート に直接貼り付け:

{ "name": "Execute multiple Command Lines based on Text File Inputs", "nodes": [...], ...}

インテグレーション

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

このワークフローを取得

ワンクリックでダウンロード&インポート

JSONをダウンロードn8n.ioで見る
ノード7
複雑度medium
トリガーtrigger
閲覧数3,065
カテゴリOther

作成者

jason

jason

@tephlon

タグ

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

n8n初めてですか?

n8nは無料のオープンソースワークフロー自動化ツールです。セルフホストまたはクラウド版をご利用いただけます。

n8nを無料で始める →