Change node Configuration from terminal

I have to run Knime, when a file is uploaded by user on server, and database has its address.

So I am running Knime command (terminal)  from Java.

The problem I am facing is that I need to change the file reader path each time it runs via command.

Please suggest a way to provide some configuration for File reader which can be done via terminal command.

Even solution to changing value for a variable via terminal will be fine.

 

You could write your variable data to a file, parse it in your workflow and pass the data within the workflow via flow variables. Or even easier, pass the option directly via command line, as discussed here:

https://tech.knime.org/forum/knime-developers/setting-flow-variables-on-command-line

P.