I have a task that is based on a ssh connection. And I want to capture the output of the cat command to pass it to the next task. So i thought i will use xcom. But the “return_value” in xcom is not showing the contents of the file. Instead it is showing a mnemonic. Has anyone done something similiar?
print_storage_task = SSHOperator(
task_id=“print_storage_file”,
ssh_conn_id=“ssh_conn_id”,
command="cat /a.csv”,
do_xcom_push=True,
)