# Loop Time Manipulation

**URL:** <https://forum.knime.com/t/loop-time-manipulation/70188>\
**Category:** KNIME Analytics Platform\
**Created:** [June 30, 2023, 5:47pm UTC](https://forum.knime.com/t/loop-time-manipulation/70188 "2023-06-30T17:47:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel2020](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/g/ee59a6/32.png) [@Gabriel2020](https://forum.knime.com/u/Gabriel2020)\
**Post date:** [June 30, 2023, 5:47pm UTC](https://forum.knime.com/t/loop-time-manipulation/70188/1 "2023-06-30T17:47:33Z")

</div>

I would need my stream to be updated every 15 minutes, is there any loop node? Where can we select the period that should start each update?

---

<div class="post-metadata">

**Author:** ![rfeigel](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/r/7ea924/32.png) [@rfeigel](https://forum.knime.com/u/rfeigel)\
**Post date:** [June 30, 2023, 9:22pm UTC](https://forum.knime.com/t/loop-time-manipulation/70188/2 "2023-06-30T21:22:03Z")

</div>

1. Knime Server has an execution timer.
2. Create batch file and run from Task Scheduler.

### Is there any way to run KNIME in batch mode, i.e. only on command line and without the graphical user interface?

There is a command line option allowing the user to run KNIME in batch mode. To see a list of possible arguments execute the following line on a command prompt (for Linux):

1 `knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION​`

On Mac the executable is not directly located in the KNIME application directory but in a sub folder of the application bundle:

1 `knime.app` `/Contents/MacOS/knime` `-nosplash -application org.knime.product.KNIME_BATCH_APPLICATION`

On a Windows system, you need to add two more options to enable system messages (by default any message to System.out is suppressed):

1 `knime.exe -consoleLog -noexit -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION`

The option:

_ **-consoleLog** _

Causes a new window to be opened containing the log messages and will keep the window open after the execution has finished. You will need to close the window manually and an error message is produced from the Java process which you can safely ignore. (If you happen to find out how this procedure can be avoided or simplified, please let us know.)

_ **–launcher.suppressErrors** _

If this is specified, then the launcher will not display a message box with errors if a problem was encountered. This allows the launcher to be used in unattended tests or builds without blocking on an error.

_ **-nosave** _

If this is specified, the workflow is not saved after execution has finished.

_ **-preferences=file.epf** _

Path to the file containing eclipse/knime preferences.

_ **-reset** _

Reset workflow prior to execution.

If you pass no options, all available options will be listed.

In order to run a workflow, named “Knime\_project” contained in the workspace directory, execute in one line:

1 `knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowDir=` `"workspace/Knime_project"`

In order to run a workflow, name “Knime\_project.zip” exported as an .zip file, execute in one line:

1 `knime -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile=` `"PATH_TO_FILE/Knime_project.zip"`

It’s also possible to change the configuration of the workflow through workflow variables. If a variable is defined for a workflow, you can use it in batch mode by referring to it using a comma separated triplet to specify the name, value and type like this:

_ **-workflow.variable=my\_integer,5,int** _  
3. Try Nodepit Ruuner. I have no experience with this method.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [July 1, 2023, 11:18pm UTC](https://forum.knime.com/t/loop-time-manipulation/70188/3 "2023-07-01T23:18:05Z")

</div>

@Gabriel2020 you might want to take a look at this debate and the examples:

> [@Start a Workflow, e. g. a database query, after a certain time](https://forum.knime.com/t/start-a-workflow-e-g-a-database-query-after-a-certain-time/30287/36):
>
> @USCHUKN1ME I tried to build a system you might be able to expand and use. The idea is to have a workflow that would iterate a number of times (v\_number\_of\_intervals) with a set interval (of seconds) between (v\_seconds\_interval) them. The workflow looks for a trigger\_file.csv if this file has changed from the last time the loop has run a component would be executed. If the file has not changed nothing would happen. Admittedly not the most elegant way but you could build a small automatic execu…

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 12, 2023, 7:31pm UTC](https://forum.knime.com/t/loop-time-manipulation/70188/4 "2023-07-12T19:31:50Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
