I'm trying to write to a .txt file from a python script, then use node red to read the contents of the file. The issue I'm having is running the python script from the Exec node. It appears to run the script but is returning a permissions error for the .txt file.
The command I'm using is:
Has anyone got any ideas why the permissions error is occuring? It runs fine if I start it manually through the Python Idle.