nags@nags:~> cd /tmp/ nags@nags:/tmp> python Python 2.4.3 (#1, May 29 2006, 19:28:16) [GCC 4.1.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from ldtp import * >>> Wed Jul 5 13:57:15 2006: Client connection: accepted >>> #startlog ('./test-lavi.xml', ) ... >>> startlog () Traceback (most recent call last): File "", line 1, in ? TypeError: startlog() takes at least 1 argument (0 given) >>> startlog ('./test-lavi.xml') startlog ( ./test-lavi.xml , 1 ) Send packet startlog721479893./test-lavi.xml1 Client packet len: 141 i = 0 Data read 141, packet-len = 141, bytes read = 141, data: startlog721479893./test-lavi.xml1 PACKET LENGTH: 0 Received packet [startlog721479893./test-lavi.xml1] through 19 Node: ACTION action_name: startlog Node: ID request_id: 721479893 Node: CONTEXT Window name: ./test-lavi.xml Node: COMPONENT Component name: 1 Command: startlog Get command id: startlog resp_len = 117 Sending.. 149 Response packet: 7214798930Successfully completed Msg: Bytes sent: 153 Received packet size 149 Received response Packet 7214798930Successfully completed 1 >>> stoplog () stoplog ( ) Send packet stoplog1778337210 Client packet len: 83 i = 0 Data read 83, packet-len = 83, bytes read = 83, data: stoplog1778337210< PACKET LENGTH: 0 Received packet [stoplog1778337210<] through 19 Node: ACTION action_name: stoplog Node: ID request_id: 1778337210 Command: stoplog Get command id: stoplog resp_len = 117 Sending.. 150 Response packet: 17783372100Successfully completed Msg: Bytes sent: 154 Received packet size 150 Received response Packet 17783372100Successfully completed 1 >>> nags@nags:/tmp> cd nags@nags:~> python Python 2.4.3 (#1, May 29 2006, 19:28:16) [GCC 4.1.1 (SUSE Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> startlog () Traceback (most recent call last): File "", line 1, in ? NameError: name 'startlog' is not defined >>> from ldtp import * >>> Wed Jul 5 13:59:18 2006: Client connection: accepted >>> startlog ('./test-lavi.xml') startlog ( ./test-lavi.xml , 1 ) Send packet startlog1511890178./test-lavi.xml1 Client packet len: 142 i = 0 Data read 142, packet-len = 142, bytes read = 142, data: startlog1511890178./test-lavi.xml1 PACKET LENGTH: 0 Received packet [startlog1511890178./test-lavi.xml1] through 20 Node: ACTION action_name: startlog Node: ID request_id: 1511890178 Node: CONTEXT Window name: ./test-lavi.xml Node: COMPONENT Component name: 1 Command: startlog Get command id: startlog resp_len = 117 Sending.. 150 Response packet: 15118901780Successfully completed Msg: Bytes sent: 154 Received packet size 150 Received response Packet 15118901780Successfully completed 1 >>> stoplog () stoplog ( ) Client packet len: 83 i = 0 Data read 83, packet-len = 83, bytes read = 83, data: stoplog2039337862 PACKET LENGTH: 0 Received packet [stoplog2039337862] through 20 Node: ACTION action_name: stoplog Node: ID request_id: 2039337862 Command: stoplog Get command id: stoplog resp_len = 117 Sending.. 150 Response packet: 20393378620Successfully completed Msg: Bytes sent: 154 Send packet stoplog2039337862 Received packet size 150 Received response Packet 20393378620Successfully completed 1 >>> Client packet len: 0 Packet received from client is not valid handle_client: error: resp_len = 117 Sending.. 171 Response packet: 2039337862-994Packet received from client is not valid Msg: Bytes sent: -1 Wed Jul 5 13:59:28 2006: Client disconnected nags@nags:~> cat /tmp/test-lavi.xml