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

Moyen complexité Déclencheur7 nœuds💎 Other👁 3,065 vuespar jason

Aperçu

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.

Nœuds utilisés

On clicking 'execute'Read Binary FileMove Binary DataFunctionExecute CommandIFNoOp

Aperçu du workflow

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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les données transitent par 7 nœuds, connecting executecommand, function, if.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (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

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier execute-multiple-command-lines-based-on-text-file-inputs téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds7
Complexitémedium
Déclencheurtrigger
Vues3,065
CatégorieOther

Créé par

jason

jason

@tephlon

Tags

executecommandfunctionifmanualtriggermovebinarydatareadbinaryfile

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →