#!/usr/bin/lppmon -e import time terminal=Pylppmon.TCP_Terminal_Client() terminal.startServer() terminal2=Pylppmon.TCP_Terminal_Client() terminal2.startServer(2200) terminal2.connectToServer("127.0.0.1",2200) terminal.connectToServer() terminal.sendText("

"+str(time.ctime())+":

"+"Hello World") terminal2.sendText("

"+str(time.ctime())+":

"+"Hello World on terminal 2") terminal.sendText("

"+str(time.ctime())+":

") terminal.sendText("

"+str(time.ctime())+":

"+"") terminal.sendText("

"+str(time.ctime())+":

"+"

hello

") for i in range(0,100): terminal.sendText("

"+str(time.ctime())+":

"+"

hello "+str(i)+"

") time.sleep(0.05)