Workflow not finishing when started from bash script

With a cron-job I am daily running a bash script on linux that starts knime headless and is supposed to run 2 workflows after another.
For control I am logging the workflow’s start & end time. The problem is, it never reaches the “log the end” step of the 1st workflow. This means the 2nd workflow is never started.
A workaround could be to start the 2 workflows with 2 different cron-jobs with an appropriate waiting time in between. But I would like to fix the issue, it should be possible. Can someone give me a tip, please? I am using Knime 4.5.1 on Ubuntu 20.04.

echo "HOME: $HOME"

# Other options: -nosave -consoleLog -noexit
# Save, so we can see where the workflow stopped

# 1st step
echo "$(date) Starting $knwf" >> $HOME/benchtestbot/log.txt
/usr/bin/knime -noexit -reset -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile=$knwf > get_all_evaldata_log.txt
# Problem: The next line is never reached <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
echo "$(date) Finished $knwf" >> $HOME/benchtestbot/log.txt

# 2nd step
echo "$(date) Starting $knwf" >> $HOME/benchtestbot/log.txt
/usr/bin/knime -noexit -reset -nosplash -application org.knime.product.KNIME_BATCH_APPLICATION -workflowFile=$knwf > create_database_from_evaldata_log.txt
echo "$(date) Finished $knwf" >> $HOME/benchtestbot/log.txt

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