I have the following Script, the Interpreter is set to Shell:
#!/bin/bash
RESULT=$(<cmd> | tee /dev/tty)
IMAGE_ID=$(python -c "<do sth. with $RESULT>")
I would like to store the result of cmd in RESULT and "print" it on screen (make it appear in the logs), but I am getting: tee: /dev/tty: No such device or address.
Any ideas how to achieve this?
I could just printf/echo $RESULT after the cmd finishes, but I would like to have "live" output.