Basic inetd server : Inetd : Network PYTHON TUTORIALS


PYTHON TUTORIALS » Network » Inetd »

 

Basic inetd server


import sys
print "Welcome."
print "Please enter a string:"
sys.stdout.flush()
line = sys.stdin.readline().strip()
print "You entered %d characters." % len(line)



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Network
» Inetd