Hi,
I created a simple t2flow with an external tool that exits with a status code
different from 0, like below:
#!/bin/bash
set -e
function mytest {
"$@"
local status=$?
if [ $status -ne 0 ]; then
echo "error with $1" >&2
exit $status
fi
}
mytest ssh `echo ${REMOTE_USER}@${COMPUTE_HOST}` " cd
/folder_that_does_not_exist/;"
echo 'finished'
exit 0
My code polls the taverna server (version 2.5.4) until the run finishes and
then check the exitcode (GET
https://host:port/taverna-server/rest/runs/UUID/listeners/io/properties/exitcode)
What I found is that the exitcode of taverna is 0, different from the exit code
of the bash script.
Is this a bug? Is there another way to get the right exit code?
Best regards,
Simone.
--
Simone Bnà, PhD
C++ Software Developer, CINECA
Via Magnanelli 6/3, 40033 Casalecchio di Reno, Italy
office: +39-0516171938
email: [email protected]/[email protected]