i am executing a command python script over SSH on a remote Linux host and it is ending prematurely.
i'm issuing this:
python3 /path/to/script --vars ...
and i expect:
there's a few seconds of delay between the 2 sections and for some reason, the arguments get printed in service request logs but the task finishes before the response shows up. i've tried longer sleep duration, i've tried adding constant output by the script, empty rows at the end of output... but nothing seems to keep the script from ending prematurely.
i ended up using the enhanced SSH command which has a delay between commands which makes sure the task doesn't end before the output is printed.
I usually use this
to make sure certain things are done (install of ESXi and 443 is up) and test before I have the workflow move on.