Icon

External Tools

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

Input File - Where to write incoming data (from the Table Creator)Path to Executable- Path to the file to execute.Execute in Directory- Where to run the executable.Command Line Arguments- Arguments to run the script with.Output File from External Tool- Where the data from the executable is written.Input Data.Mandatory, but does not need to be used.Here we will be adding to these numbers, butif your script doesn't need an input this can be arbritary.External Tool Table Creator Input File - Where to write incoming data (from the Table Creator)Path to Executable- Path to the file to execute.Execute in Directory- Where to run the executable.Command Line Arguments- Arguments to run the script with.Output File from External Tool- Where the data from the executable is written.Input Data.Mandatory, but does not need to be used.Here we will be adding to these numbers, butif your script doesn't need an input this can be arbritary.External Tool Table Creator

Nodes

Extensions

Links