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

Gemiddeld complexiteit Trigger7 knooppunten💎 Other👁 3,065 weergavendoor jason

Overzicht

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.

Gebruikte knooppunten

On clicking 'execute'Read Binary FileMove Binary DataFunctionExecute CommandIFNoOp

Workflow-voorvertoning

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

Hoe het werkt

  1. 1

    Trigger

    De workflow start met een trigger-trigger.

  2. 2

    Verwerking

    Gegevens stromen door 7 knooppunten, connecting executecommand, function, if.

  3. 3

    Uitvoer

    De workflow voltooit zijn automatisering en levert het resultaat aan de geconfigureerde bestemming.

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

Hoe deze workflow te importeren

  1. 1Klik op de knop JSON downloaden rechts om het workflowbestand op te slaan.
  2. 2Open uw n8n-instantie. Ga naar Workflows → Nieuw → Importeren uit bestand.
  3. 3Selecteer het gedownloade bestand execute-multiple-command-lines-based-on-text-file-inputs en klik op Importeren.
  4. 4Stel inloggegevens in voor elk serviceknooppunt (API-sleutels, OAuth, enz.).
  5. 5Klik op Workflow testen om te controleren of alles werkt, activeer het vervolgens.

Of plak rechtstreeks in n8n → Importeren uit JSON:

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

Integraties

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

Haal deze workflow op

Download en importeer met één klik

JSON downloadenBekijken op n8n.io
Knooppunten7
Complexiteitmedium
Triggertrigger
Weergaven3,065
CategorieOther

Gemaakt door

jason

jason

@tephlon

Tags

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

Nieuw bij n8n?

n8n is een gratis open-source workflow-automatiseringstool. Host het zelf of gebruik de cloudversie.

n8n gratis ophalen →