export DATABRICKS_CLI_TELEMETRY_PID_FILE=./telemetry.pid export DATABRICKS_CLI_TELEMETRY_UPLOAD_LOGS_FILE=./out.send_telemetry.txt trace $CLI selftest send-telemetry echo "waiting for telemetry process to finish" # Wait for the child telemetry process to finish wait_pid $(cat ./telemetry.pid) # cleanup the pid file rm -f ./telemetry.pid