Alptugay <alptugay@labristeknoloji.com> writes:
Hello all, I have a python script which prints 30 lines. And my syslog-ng is listening this script and writing it's messages to a stream. But the application which is listening to the stream recieves all the lines in one line. To be more clear my source program is basically like this:
while i<30: print "cccc dddd" i=i+1
But my application listening to the stream gets a line like this: [[u'<13>Dec 6 11:47:11 ddos1 cccc dddd'], [u'<13>Dec 6 11:47:11 ddos1 cccc dddd'], [u'<13>Dec 6 11:47:11 ddos1 cccc dddd'], [...]
This looks like a python array to me, where each member is a string, one for each line your program sent. I strongly suspect the mistake is in your listening application. -- |8]