Ignore:
Timestamp:
22/08/06 10:14:22 (13 years ago)
Author:
spascoe
Message:

Added a script to run some tests using a remote client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/examples/deliveryd.py

    r1289 r1434  
    7474''' 
    7575 
    76 n = len(open('/var/log/bbftpd/bbftpd.log').readlines()) 
     76logfile = './bbftpd.log' 
     77n = len(open(logfile).readlines()) 
    7778pid = server.start(AuthHandler(), ['-l', 'DEBUG']) 
    7879print 'Server process started at pid = %d' % pid 
    79 print 'Monitoring /var/log/bbftpd/bbftpd.log' 
     80print 'Monitoring %s' % logfile 
    8081 
    8182try: 
    8283    while 1: 
    83         newlines = open('/var/log/bbftpd/bbftpd.log').readlines()[n:] 
     84        newlines = open(logfile).readlines()[n:] 
    8485        n += len(newlines) 
    8586        for line in newlines: 
Note: See TracChangeset for help on using the changeset viewer.