Hi everyone,
I’m currently working with a local n8n setup and trying to execute a Python script using the Execute Command node. My goal is to pass a dynamic file path (e.g., an input audio file) into the command instead of using a static filename.
The workflow itself is running locally without issues, and the Python script works fine when I execute it manually from the terminal. However, when I try to construct the file path dynamically inside n8n (e.g., using expressions like {{$json["fileName"]}}), the Execute Command node throws an error.
Issues I’m facing:
- Dynamic variable is not being resolved correctly
- Command fails even though the static version works
- Workflow is running locally (not in Docker or cloud)
What I want to achieve:
- Pass the incoming file name dynamically to the script
- Process different files automatically within the same workflow
Has anyone successfully implemented dynamic file paths in Execute Command in a local n8n setup? Any tips or best practices would be really helpful.