[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [torperf/master] Update HOWTO based on comments by ln5 et al.



commit 57bb046b54b49faeb40e1e10d06fa18446c811db
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Mon Mar 12 09:07:53 2012 +0100

    Update HOWTO based on comments by ln5 et al.
---
 measurements-HOWTO |    9 ++++++---
 truncate-data.py   |    2 +-
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/measurements-HOWTO b/measurements-HOWTO
index 2cefb68..30c0206 100644
--- a/measurements-HOWTO
+++ b/measurements-HOWTO
@@ -128,17 +128,20 @@ $ crontab -e
 
 */5 * * * * timeout -s2 295 ~/torperf/trivsocks-client
   torperf.torproject.org 127.0.0.1:9020 /.50kbfile >> ~/torperf/50kb.data
-  2>/dev/null; ~/torperf/truncate-data.py ~/torperf/50kb.data
+  2>/dev/null; python ~/torperf/truncate-data.py ~/torperf/50kb.data
 2,32 * * * * timeout -s2 1795 ~/torperf/trivsocks-client
   torperf.torproject.org 127.0.0.1:9021 /.1mbfile >> ~/torperf/1mb.data
-  2>/dev/null; ~/torperf/truncate-data.py ~/torperf/1mb.data
+  2>/dev/null; python ~/torperf/truncate-data.py ~/torperf/1mb.data
 8 * * * * timeout -s2 3595 ~/torperf/trivsocks-client
   torperf.torproject.org 127.0.0.1:9022 /.5mbfile >> ~/torperf/5mb.data
-  2>/dev/null; ~/torperf/truncate-data.py ~/torperf/5mb.data
+  2>/dev/null; python ~/torperf/truncate-data.py ~/torperf/5mb.data
 
 (Omit the truncate-data.py command if you don't want .data files to be
 truncated once per week to contain only the last 4 days of data.)
 
+Note that Python 2.6 or higher is required for the truncate-data.py
+script.
+
 From now on, the three files 50kb.data, 1mb.data, and 5mb.data should
 accumulate lines like this (50kb.data shown here; line breaks are only for
 formatting purposes):
diff --git a/truncate-data.py b/truncate-data.py
index a70e3fc..7e72052 100755
--- a/truncate-data.py
+++ b/truncate-data.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import os
 import re
 import sys

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits