source: CMTManagement/utils/bd_client.py

Last change on this file was 421, checked in by garonne, 17 years ago
  • Property svn:executable set to *
File size: 291 bytes
Line 
1#!/usr/bin/env python
2import socket
3import sys
4
5HOST = 'localhost'    # The remote host
6PORT = 1968              # The same port as used by the server
7s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
8s.connect((HOST, PORT))
9s.send(sys.argv[1])
10data = s.recv(1024)
11s.close()
12print data
13
Note: See TracBrowser for help on using the repository browser.