Beispiel #1
0
 def std_listen(self, handle, out):
     while True:
         line = handle.readline()
         if not line:
             return
         if out:
             out.write("%s: %s" % (stime(), line))
Beispiel #2
0
 def std_listen(self, handle, out):
     while True:
         line = handle.readline()
         if not line:
             return
         if out: out.write('%s: %s' %(stime(), line))
Beispiel #3
0
 def print_write(self, s):
     if self.host in PRINT_VERB:
         printtime("%s: %s" % (self.host, s))
     self.out.write("%s: %s\n" % (stime(), s))
Beispiel #4
0
 def print_write(self, s):
     if self.host in PRINT_VERB: printtime('%s: %s' % (self.host, s))
     self.out.write('%s: %s\n' % (stime(), s))