stdout Weiterleitung

Ich arbeite mit einer Prozedur in tcl, über die ich keine Kontrolle habe. Das Ausgabefenster ist sehr ausführlich wie folgt:

Response:<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server</faultcode><faultstring>Item not valid: The specified Standard SIP1 Profile was not found</faultstring><detail><axlError><axlcode>5007</axlcode><axlmessage>Item not valid: The specified Standard SIP1 Profile was not found</axlmessage><request>updatePhone</request></axlError></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

Kann ich dieses stdout auf irgendeine Weise in eine Variable umleiten? Ich bin neu bei tcl und weiß nicht, wie ich das machen kann.

Antworten auf die Frage(6)

Ihre Antwort auf die Frage