Lasse Vågsæther Karlsen wrote:
> I got a loop like this:
Ok, I've found some information. I don't like the answer but it doesn't
seem to be any good way to do this without hacking it one way or the other.
If someone has a brilliant answer that isn't in google yet, please let
me know.
--
Lass
I got a loop like this:
while True:
line = sys.stdin.readline()
if not line:
break
line = line.rstrip()
log_message(options.channel_name, line)
print line
this loop will read text if I execute it from a command prompt like this:
dir