Execute multiple Command Lines based on Text File Inputs — n8n Workflow

Mittel Komplexität Auslöser7 Knoten💎 Other👁 3,065 Aufrufevon jason

Übersicht

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.

Verwendete Knoten

On clicking 'execute'Read Binary FileMove Binary DataFunctionExecute CommandIFNoOp

Workflow-Vorschau

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

So funktioniert es

  1. 1

    Auslöser

    Der Workflow startet mit einem auslöser-Auslöser.

  2. 2

    Verarbeitung

    Die Daten fließen durch 7 Knoten, connecting executecommand, function, if.

  3. 3

    Ausgabe

    Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.

Knotendetails (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

So importieren Sie diesen Workflow

  1. 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
  2. 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
  3. 3Wählen Sie die heruntergeladene Datei execute-multiple-command-lines-based-on-text-file-inputs und klicken Sie auf Importieren.
  4. 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
  5. 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.

Oder direkt in n8n → Aus JSON importieren einfügen:

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

Integrationen

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

Diesen Workflow holen

Herunterladen und mit einem Klick importieren

JSON herunterladenAuf n8n.io ansehen
Knoten7
Komplexitätmedium
Auslösertrigger
Aufrufe3,065
KategorieOther

Erstellt von

jason

jason

@tephlon

Tags

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

Neu bei n8n?

n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.

n8n kostenlos holen →