Article ID: 195 - Last Modified: May 2, 2012
Can I run KNIME workflows from the command line, without using the KNIME user interface ?
Yes. The commands are different for Linux/Mac and Windows, as illustrated below. There is more information in Chapter 5 (Suite 2012) or Chapter 4 (earlier releases) of the KNIME Extensions User Manual.
Linux/Mac sample usage:
$SCHRODINGER/knime -batch -reset -workflowFile=path-to-workflow/Workflow.zip
Windows sample usage:
From Suite 2011 on, open a Schrodinger Command Prompt from the Start menu, and type sh at the prompt. In earlier suites, navigate to the Schrodinger installation directory and click on the SchrodingerShell. Either of these opens a Unix-style terminal window with the Schrödinger environment set up. Submit a command with the following arguments
C:/Schrodingeryear/knime.bat -consoleLog -noexit -nosplash -reset -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile=C:/path-to-workflow/Workflow.zip
The argument -workflowDir may also be used. Under Windows, -batch is not supported, but instead you use -consoleLog, -noexit, -nosplash, and
-application org.knime.product.KNIME_BATCH_APPLICATION.
Note the Unix-style forward slashes in the path.
Note, the Run Maestro node is not supported. Maestro will not open if there is a Run Maestro node in the workflow.
From Suite 2012, you can wrap a KNIME workflow in a Python script from Maestro, install it in Maestro and run it from Maestro. See Chapter 4 of the KNIME Extensions User Manual for details.
Keywords: KNIME, command line, windows
Type the words or phrases on which you would like to search, or click here to view a list of all
Knowledge Base articles

