From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2149 Path: news.gmane.org!not-for-mail From: Sergiusz Pawlowicz Newsgroups: gmane.comp.sysutils.supervision.general Subject: [magic sv logging] Date: Fri, 21 Sep 2012 00:35:23 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1348184130 28329 80.91.229.3 (20 Sep 2012 23:35:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 20 Sep 2012 23:35:30 +0000 (UTC) To: SV List Original-X-From: supervision-return-2383-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Sep 21 01:35:31 2012 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TEqHK-00057s-1i for gcsg-supervision@plane.gmane.org; Fri, 21 Sep 2012 01:35:30 +0200 Original-Received: (qmail 17905 invoked by uid 76); 20 Sep 2012 22:36:43 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 17895 invoked from network); 20 Sep 2012 22:36:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=sbruCo/fBI26dauJwclbZ3IoXbQdL6qflOz8Gy0dpc4=; b=UDClh+KotMaP3TV71Ta59Ggawlc4QG+icpFoiVe3knPmr/613aa/e6Wz0Yoh5ik0rQ d0YNC3kJo1H/2sMoWibq6HdWTEvWViMb3Ycb0ltXEjTvchGBJJcvTIiEqJm0jfV4sBxJ K9zPIHVUVcj2/3wicfYdO4N5rXjPRuhnCU+jFq316BOyb8reDolRbzLByzTTPxP+pn7G zCTWYmi7Ec46CE9I2wHJAcxRHIijYGqohcyfrk23+zJjUDLywMrJesPtB8m93hQZdSua hO/fcviOiNlICD3T8RBsD+lx1JHAC8ioQbB4NLec6sSde5/CF3wyYMarrUYBDb0cdbVU ey8w== Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2149 Archived-At: Hi, I am trying to write a python script which can be put in place of svlogd/multilog, but I am stuck just at the beginning. The test script is pretty simple, it just forwards stdin to stdout: def main(): while True: try: line = raw_input() print 'got', line except EOFError: print 'done' pass if __name__ == '__main__': main() It works, but not as desired, as the script is being restarted by runsv constantly, it seems after it finishes reading stdin. Could you please help me how can run that continuously listening to stdin? cheers, Serge -- https://pawlowicz.name/