Execute multiple Command Lines based on Text File Inputs — Workflow n8n
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
Aperçu du workflow
Comment ça fonctionne
- 1
Déclencheur
Le workflow démarre avec un déclencheur déclencheur.
- 2
Traitement
Les données transitent par 7 nœuds, connecting executecommand, function, if.
- 3
Sortie
Le workflow termine son automatisation et livre le résultat à la destination configurée.
Détails des nœuds (7)
On clicking 'execute'
manualTrigger
Read Binary File
readBinaryFile
Move Binary Data
moveBinaryData
Function
function
Execute Command
executeCommand
IF
if
NoOp
noOp
Comment importer ce workflow
- 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
- 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
- 3Sélectionnez le fichier
execute-multiple-command-lines-based-on-text-file-inputstéléchargé et cliquez sur Importer. - 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
- 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.
Ou collez directement dans n8n → Importer depuis JSON :
Intégrations
Créé par
jason
@tephlon
Tags
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 →