This shows a simple example of calling the external tools node. The workflow data directory contains all the necessay files:
input.txt
addNumber.sh
output.txt
The addNumber.sh script requires two Command Line Arguments. The first is the path to the file you would like to read and the second is the number you would like to add to the input. You may get a permissions error running the script, and can set full read-write-execute access to the script by running the command "chmod u=rwx,g=rwx,o=rwx addNumber.sh"
The script itself:
#! /bin/bash
filename=$1
n=$2
while read line; do
sum=$(($line + $n))
echo $sum >>output.txt
done < $filename
To use this workflow in KNIME, download it from the below URL and open it in KNIME:
Download WorkflowDeploy, schedule, execute, and monitor your KNIME workflows locally, in the cloud or on-premises – with our brand new NodePit Runner.
Try NodePit Runner!Do you have feedback, questions, comments about NodePit, want to support this platform, or want your own nodes or workflows listed here as well? Do you think, the search results could be improved or something is missing? Then please get in touch! Alternatively, you can send us an email to mail@nodepit.com.
Please note that this is only about NodePit. We do not provide general support for KNIME — please use the KNIME forums instead.